Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a configuration file for avtdl (https://github.com/15532th/avtdl)
- # designed to make it monitor Youtube subscription feed and write urls for
- # upcoming livestreams into a text file half an hour prior to the time they
- # are scheduled to go live.
- #
- # Save it as "config.yml" in the working directory to make avtdl.py/avtdl.exe
- # pick it up. Output will be stored in "notify.txt" in the same directory.
- # Refer to https://github.com/15532th/avtdl#installation for installation
- # and running instructions.
- #
- # In order to aceess Youtube subscriptions feed of an account, it needs
- # a text file ("cookies.txt") with cookies for a Youtube account. See
- # https://github.com/15532th/avtdl#cookies_file for additional info.
- actors:
- channel:
- config:
- db_path: ":memory:"
- defaults:
- quiet_first_time: false
- update_interval: 900
- entities:
- - name: "subscriptions"
- url: "https://www.youtube.com/feed/subscriptions"
- # path to the file with login cookies:
- cookies_file: "cookies.txt"
- to_file:
- entities:
- - name: "notify"
- # path to the output file:
- filename: "notify.txt"
- output_template: "{url} [{scheduled}]\n{author}"
- missing: "live"
- filter.deduplicate:
- entities:
- - name: "subscriptions"
- field: "video_id"
- filter.channel.notify:
- entities:
- - name: "subscriptions"
- prior: 30
- include_ongoing: true
- chains:
- subscriptions_to_txt:
- - channel:
- - "subscriptions"
- - filter.deduplicate:
- - "subscriptions"
- - filter.channel.notify:
- - "subscriptions"
- - to_file:
- - "notify"
Advertisement
Add Comment
Please, Sign In to add comment