Merge pull request #4 from tteeoo/master

Fix link generation
This commit is contained in:
2020-06-06 15:10:15 +00:00
committed by GitHub

4
subs
View File

@@ -62,8 +62,8 @@ gen_links() {
esac esac
# otherwise we are given a username, we must find out its channel ID # 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 | \ curl -sfL --retry 10 "https://youtube.com/user/$line/about" | \
sed -e 's|www\.||' -e 's|.*href="||' -e 's|">.*||' >>"$SUBS_LINKS" echo "https://youtube.com/feeds/videos.xml?channel_id=$(grep -ohm 1 'channel\/UC......................' | tail -c 25)" >>"$SUBS_LINKS"
done <"$SUBS_FILE" done <"$SUBS_FILE"
} }