diff --git a/index_template.md b/index_template.md new file mode 100644 index 0000000..d8678a3 --- /dev/null +++ b/index_template.md @@ -0,0 +1,14 @@ +--- +title: "{{ v.name }}" +date: "{{ v.published_at }}" #2021-06-10T10:46:33+02:00 +draft: false +uuid: "{{v.uuid}}" +video_duration: "{{ v.duration | duration }} " +video_channel: "{{ v.channel.display_name }}" +channel_url: "{{ v.channel.url }}" +preview_image: "{{ preview_image }}" +category: "tv" + +--- + +{{ v.description }} \ No newline at end of file diff --git a/streams-feed.py b/streams-feed.py index 5352402..08e2f6b 100644 --- a/streams-feed.py +++ b/streams-feed.py @@ -45,11 +45,11 @@ configuration = peertube.Configuration( host = host+"/api/v1" ) -client = peertube.ApiClient(configuration) +client = peertube.ApiClient(configuration) v = peertube.VideoApi(client) -response = v.videos_get(count=6, filter='local')#, tags_one_of='audio') +response = v.videos_get(count=6, filter='local')#, tags_one_of='publish') videos = response.to_dict() videos = videos['data'] diff --git a/video-feed-prototype.html b/video-feed-prototype.html index 891f7fa..c4cac22 100644 --- a/video-feed-prototype.html +++ b/video-feed-prototype.html @@ -9,7 +9,7 @@ - + @@ -200,13 +200,12 @@