From ef5d6b843ab866ef4920e5f866105117af586f63 Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Fri, 3 Apr 2020 12:24:46 +0200 Subject: [PATCH] Add a full set of samples to understand better who NFO works now --- prismedia/samples/cli_nfo.txt | 12 ++++++++++++ prismedia/samples/full_nfo_examples.txt | 26 +++++++++++++++++++++++++ prismedia/samples/nfo.txt | 9 +++++++++ prismedia/samples/samples.txt | 14 +++++++++++++ prismedia/samples/yourvideo.txt | 14 +++++++++++++ 5 files changed, 75 insertions(+) create mode 100644 prismedia/samples/cli_nfo.txt create mode 100644 prismedia/samples/full_nfo_examples.txt create mode 100644 prismedia/samples/nfo.txt create mode 100644 prismedia/samples/samples.txt create mode 100644 prismedia/samples/yourvideo.txt diff --git a/prismedia/samples/cli_nfo.txt b/prismedia/samples/cli_nfo.txt new file mode 100644 index 0000000..880dd8f --- /dev/null +++ b/prismedia/samples/cli_nfo.txt @@ -0,0 +1,12 @@ +### This NFO is aimed to be passed to prismedia through the --nfo cli option ### +### eg: +### python -m prismedia --file=/path/to/yourvideo.mp4 --nfo=/path/to/cli_nfo.txt ### +### It's the more priority NFO, only erased by direct cli options ### +[video] +disable-comments = False +nsfw = True +# Publish on Peertube at a specific date +peertubeAt = 2034-05-14T19:00:00 +platform = peertube +# debug to display all loaded options +debug = True \ No newline at end of file diff --git a/prismedia/samples/full_nfo_examples.txt b/prismedia/samples/full_nfo_examples.txt new file mode 100644 index 0000000..0ee5410 --- /dev/null +++ b/prismedia/samples/full_nfo_examples.txt @@ -0,0 +1,26 @@ +### This NFO example show how to construct a NFO for your video ### +### All fields are optionals, but you need at least one field (otherwise NFO is useless :-p) ### +### See --help for options explanation +[video] +name = videoname +description = Your complete video description + Multilines description + should be wrote with a blank space + at the beginning of the line :-) +tags = list of tags, comma separated +category = Films +cca = True +privacy = private +disable-comments = True +#thumbnail = /path/to/your/thumbnail.jpg # Set the absolute path to your thumbnail +channel = CookingTest +channelCreate = True +playlist = Desserts Recipes playlist +playlistCreate = True +nsfw = False +platform = youtube, peertube +language = French +publishAt = 2034-05-07T19:00:00 +# platformAt overrides the default publishAt for the corresponding platform +#peertubeAt = 2034-05-14T19:00:00 +#youtubeAt = 2034-05-21T19:00:00 \ No newline at end of file diff --git a/prismedia/samples/nfo.txt b/prismedia/samples/nfo.txt new file mode 100644 index 0000000..7b18585 --- /dev/null +++ b/prismedia/samples/nfo.txt @@ -0,0 +1,9 @@ +### This NFO is named nfo.txt and is stored in the directory of your videos ### +### This is the less priority NFO, you may use it to set default generic options ### +[video] +# Some generic options for your videos +cca = True +privacy = private +disable-comments = True +channel = DefaultChannel +channelCreate = True \ No newline at end of file diff --git a/prismedia/samples/samples.txt b/prismedia/samples/samples.txt new file mode 100644 index 0000000..338905e --- /dev/null +++ b/prismedia/samples/samples.txt @@ -0,0 +1,14 @@ +### This NFO is named from the directory where your video are. ### +### While more specific than nfo.txt, it's less priority than other NFO ### +### You may use it for options specific to videos in this directory, but still globals ### +[video] +channel = MyMoreSpecificChannel +disable-comments = False +channelCreate = True +category = Films +playlist = Desserts Recipes playlist +playlistCreate = True +nsfw = False +platform = youtube, peertube +language = French +tags = list of tags, comma separated \ No newline at end of file diff --git a/prismedia/samples/yourvideo.txt b/prismedia/samples/yourvideo.txt new file mode 100644 index 0000000..269d751 --- /dev/null +++ b/prismedia/samples/yourvideo.txt @@ -0,0 +1,14 @@ +### This NFO is named from your video name (here let's say your video is named "yourvideo.mp4") ### +### It aims to give options specific to this videos ### +[video] +disable-comments = False +#thumbnail = /path/to/your/thumbnail.jpg # Set the absolute path to your thumbnail +name = videoname +description = Your complete video description + Multilines description + should be wrote with a blank space + at the beginning of the line :-) +publishAt = 2034-05-07T19:00:00 +# platformAt overrides the default publishAt for the corresponding platform +#peertubeAt = 2034-05-14T19:00:00 +#youtubeAt = 2034-05-21T19:00:00 \ No newline at end of file