1
0

Merge pull request #6 from TomasHubelbauer/patch-1

Check for Python 3 at runtime and at README.md-time :-)
This commit is contained in:
Damien 2018-02-07 11:49:51 -05:00 committed by GitHub
commit de0f03a4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -1,8 +1,13 @@
# youtube-dl-subscriptions
Downloads all new videos from your YouTube subscription feeds.
Requires Python 3 to run!
I recommend to create a new folder and place the dl.py inside. You will also need a OPML file named subs.xml containing all your YouTube's subscriptions in the same folder. You can download it from https://www.youtube.com/subscription_manager?action_takeout=1 when you're logged in your YouTube account. The script will create a last.txt file inside the folder in order to remember when it was last run and not re-download the same videos again.
Requirements:
* Python 3
Dependencies:
* opml
* feedparser

4
dl.py
View File

@ -1,9 +1,13 @@
import opml
import feedparser
import youtube_dl
import sys
from glob import glob
from pprint import pprint
if sys.version_info[0] < 3:
raise Exception('Must be using Python 3')
from time import time, mktime, strptime
from datetime import datetime