Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4 from tteeoo/master
Browse files Browse the repository at this point in the history
Fix link generation
  • Loading branch information
mitchweaver authored Jun 6, 2020
2 parents 805b114 + ffe6be5 commit 489ac38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ gen_links() {
esac

# otherwise we are given a username, we must find out its channel ID
curl -sfL --retry 10 "https://youtube.com/user/$line/about" | grep channel_id | \
sed -e 's|www\.||' -e 's|.*href="||' -e 's|">.*||' >>"$SUBS_LINKS"
curl -sfL --retry 10 "https://youtube.com/user/$line/about" | \
echo "https://youtube.com/feeds/videos.xml?channel_id=$(grep -ohm 1 'channel\/UC......................' | tail -c 25)" >>"$SUBS_LINKS"

done <"$SUBS_FILE"
}
Expand Down

0 comments on commit 489ac38

Please sign in to comment.