-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add duration to yt-based items (#69)
* add `<itunes:duration>` in seconds to yt entries and the final rss * lint: false-positive inclusion warn
- Loading branch information
Showing
7 changed files
with
97 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
feeds: | ||
yt-example: | ||
title: Some cool channels | ||
description: an example of youtube-based podcas | ||
link: http://example.com | ||
language: "ru-ru" | ||
image: images/yt-example.png | ||
sources: | ||
- name: Точка | ||
url: http://localhost:8080/yt/rss/PLZVQqcKxEn_6YaOniJmxATjODSVUbbMkd | ||
- name: Живой Гвоздь | ||
url: http://localhost:8080/yt/rss/UCWAIvx2yYLK_xTYD4F2mUNw | ||
- name: Дилетант | ||
url: http://localhost:8080/yt/rss/UCuIE7-5QzeAR6EdZXwDRwuQ | ||
|
||
|
||
youtube: | ||
base_url: http://localhost:8080/yt/media | ||
dl_template: yt-dlp --extract-audio --audio-format=mp3 --audio-quality=0 -f m4a/bestaudio "https://www.youtube.com/watch?v={{.ID}}" --no-progress -o {{.FileName}}.tmp | ||
base_chan_url: "https://www.youtube.com/feeds/videos.xml?channel_id=" | ||
base_playlist_url: "https://www.youtube.com/feeds/videos.xml?playlist_id=" | ||
update: 60s | ||
max_per_channel: 3 | ||
files_location: ./var/yt | ||
rss_location: ./var/rss | ||
channels: | ||
- {id: UCWAIvx2yYLK_xTYD4F2mUNw, name: "Живой Гвоздь", lang: "ru-ru"} | ||
- {id: UCuIE7-5QzeAR6EdZXwDRwuQ, name: "Дилетант", type: "channel", lang: "ru-ru"} | ||
- {id: PLZVQqcKxEn_6YaOniJmxATjODSVUbbMkd, name: "Точка", type: "playlist", lang: "ru-ru"} | ||
|
||
system: | ||
update: 1m | ||
max_per_feed: 10 | ||
max_total: 50 | ||
max_keep: 1000 | ||
base_url: http://localhost:8080 |