Skip to content

Commit

Permalink
Fix long playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
pierlauro committed Feb 1, 2016
1 parent 9260643 commit ccc20f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playlist2links
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ grep -e "^<tr.*<a href=\"/watch?v=.*$1" "${TMPFILE}.html" | sed 's/.*watch/https
while [[ $(grep "continuation=" ${TMPFILE}.html) ]]
do
sed -i 's/_continuation=1/\n/g' ${TMPFILE}.html
CONTINUATION=$((sed 's/\(.*\)continuation=/https:\/\/www.youtube.com\/browse_ajax?action_continuation=1&/g' | sed 's/".*//g') <<< $(grep "continuation=" ${TMPFILE}.html))
CONTINUATION=$((sed 's/\(.*\)continuation=/https:\/\/www.youtube.com\/browse_ajax?action_continuation=1&/g' | sed 's/".*//g' | sed 's/\\u0026/\&/g' | tr -d '\' ) <<< $(grep "continuation=" ${TMPFILE}.html))

if [[ -n $(type -p wget) ]];
then
Expand Down

0 comments on commit ccc20f8

Please sign in to comment.