From 6be996b9a3e9718a176d82d1a2d86078444decef Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Wed, 14 Mar 2018 10:55:10 +0100 Subject: [PATCH] Check the NFO feature in README! :-) --- README.md | 2 +- lib/utils.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f740bfd..100c2fa 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ Categories: - [x] enabling/disabling comment (Peertube only as Youtube API does not support it) - [x] nsfw (Peertube only as Youtube API does not support it) - ~~thumbnail/preview~~ Canceled, waiting for Youtube's API support -- [ ] Use a config file (NFO) file to retrieve videos arguments +- [x] Use a config file (NFO) file to retrieve videos arguments - [ ] Record and forget: put the video in a directory, and the script uploads it for you - [ ] Usable on Desktop (Linux and/or Windows and/or MacOS) - [ ] Graphical User Interface diff --git a/lib/utils.py b/lib/utils.py index 0062b22..54c4b06 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -49,8 +49,8 @@ PEERTUBE_CATEGORY = { ###################### -def getCategory(category, type): - if type == "youtube": +def getCategory(category, platform): + if platform == "youtube": return YOUTUBE_CATEGORY[category.lower()] else: return PEERTUBE_CATEGORY[category.lower()] @@ -58,7 +58,7 @@ def getCategory(category, type): # return the nfo as a RawConfigParser object def loadNFO(options): - video_directory = dirname(options.get('--file')) +"/" + video_directory = dirname(options.get('--file')) + "/" if options.get('--nfo'): try: print "Using " + options.get('--nfo') + " as NFO, loading..."