mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 09:29:16 +02:00
Check the NFO feature in README! :-)
This commit is contained in:
parent
d25162120e
commit
6be996b9a3
2 changed files with 4 additions and 4 deletions
|
@ -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..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue