mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 17:39: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
|
@ -119,7 +119,7 @@ Categories:
|
||||||
- [x] enabling/disabling comment (Peertube only as Youtube API does not support it)
|
- [x] enabling/disabling comment (Peertube only as Youtube API does not support it)
|
||||||
- [x] nsfw (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
|
- ~~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
|
- [ ] 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)
|
- [ ] Usable on Desktop (Linux and/or Windows and/or MacOS)
|
||||||
- [ ] Graphical User Interface
|
- [ ] Graphical User Interface
|
||||||
|
|
|
@ -49,8 +49,8 @@ PEERTUBE_CATEGORY = {
|
||||||
######################
|
######################
|
||||||
|
|
||||||
|
|
||||||
def getCategory(category, type):
|
def getCategory(category, platform):
|
||||||
if type == "youtube":
|
if platform == "youtube":
|
||||||
return YOUTUBE_CATEGORY[category.lower()]
|
return YOUTUBE_CATEGORY[category.lower()]
|
||||||
else:
|
else:
|
||||||
return PEERTUBE_CATEGORY[category.lower()]
|
return PEERTUBE_CATEGORY[category.lower()]
|
||||||
|
@ -58,7 +58,7 @@ def getCategory(category, type):
|
||||||
|
|
||||||
# return the nfo as a RawConfigParser object
|
# return the nfo as a RawConfigParser object
|
||||||
def loadNFO(options):
|
def loadNFO(options):
|
||||||
video_directory = dirname(options.get('--file')) +"/"
|
video_directory = dirname(options.get('--file')) + "/"
|
||||||
if options.get('--nfo'):
|
if options.get('--nfo'):
|
||||||
try:
|
try:
|
||||||
print "Using " + options.get('--nfo') + " as NFO, loading..."
|
print "Using " + options.get('--nfo') + " as NFO, loading..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue