Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PARAMOUNT-YTDLP/PARAMOUNT-V2-YTDLP
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ fi
## Begin Loop..
while read -r SEASON_NUMBER; do
# Now That We Know How Many Seasons We're Working With, Let's Pull The JSON For Each Season
JSON_DUMP=$(curl --silent --proxy "$PROXY_IP" --cookie "$PARAMOUNT_COOKIE" "https://www.paramountplus.com/shows/$URL_SLUG/video/xhr/episodes/page/0/size/1000/xs/0/season/$SEASON_NUMBER/" -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'X-Requested-With: XMLHttpRequest' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Referer: https://www.paramountplus.com/shows/' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'TE: trailers')
JSON_DUMP=$(curl --silent --proxy "$PROXY_IP" --cookie "$PARAMOUNT_COOKIE" "https://www.paramountplus.com/shows/$URL_SLUG/video/xhr/episodes/page/0/size/100/xs/0/season/$SEASON_NUMBER/" -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'X-Requested-With: XMLHttpRequest' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Referer: https://www.paramountplus.com/shows/' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'TE: trailers')

# For Each Season We Loop Thru, We'll Extract The Episode URLs in to a TXT File
echo $JSON_DUMP | jq -r '.result.data[].metaData.videoPageURL' | sed 's#^#https://paramountplus.com#g' >> $EPISODE_URL_LIST
Expand Down
2 changes: 1 addition & 1 deletion PARAMOUNT-YTDLP/PARAMOUNT-YTDLP
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ fi
## Begin Loop..
while read -r SEASON_NUMBER; do
# Now That We Know How Many Seasons We're Working With, Let's Pull The JSON For Each Season
JSON_DUMP=$(curl --silent --cookie "$PARAMOUNT_COOKIE" "https://www.paramountplus.com/shows/$URL_SLUG/video/xhr/episodes/page/0/size/1000/xs/0/season/$SEASON_NUMBER/" -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'X-Requested-With: XMLHttpRequest' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Referer: https://www.paramountplus.com/shows/' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'TE: trailers')
JSON_DUMP=$(curl --silent --cookie "$PARAMOUNT_COOKIE" "https://www.paramountplus.com/shows/$URL_SLUG/video/xhr/episodes/page/0/size/100/xs/0/season/$SEASON_NUMBER/" -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'X-Requested-With: XMLHttpRequest' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Referer: https://www.paramountplus.com/shows/' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'TE: trailers')

# For Each Season We Loop Thru, We'll Extract The Episode URLs in to a TXT File
echo $JSON_DUMP | jq -r '.result.data[].metaData.videoPageURL' | sed 's#^#https://paramountplus.com#g' >> $EPISODE_URL_LIST
Expand Down