Guest User

Untitled

a guest
Apr 22nd, 2024
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.68 KB | Source Code | 0 0
  1. # This is a configuration file for avtdl (https://github.com/15532th/avtdl)
  2. # designed to make it monitor Youtube subscription feed and write urls for
  3. # upcoming livestreams into a text file half an hour prior to the time they
  4. # are scheduled to go live.
  5. #
  6. # Save it as "config.yml" in the working directory to make avtdl.py/avtdl.exe
  7. # pick it up. Output will be stored in "notify.txt" in the same directory.
  8. # Refer to https://github.com/15532th/avtdl#installation for installation
  9. # and running instructions.
  10. #
  11. # In order to aceess Youtube subscriptions feed of an account, it needs
  12. # a text file ("cookies.txt") with cookies for a Youtube account. See
  13. # https://github.com/15532th/avtdl#cookies_file for additional info.
  14.  
  15. actors:
  16.   channel:
  17.     config:
  18.       db_path: ":memory:"
  19.     defaults:
  20.       quiet_first_time: false
  21.       update_interval: 900
  22.     entities:
  23.       - name: "subscriptions"
  24.         url: "https://www.youtube.com/feed/subscriptions"
  25.         # path to the file with login cookies:
  26.         cookies_file: "cookies.txt"
  27.  
  28.   to_file:
  29.     entities:
  30.       - name: "notify"
  31.         # path to the output file:
  32.         filename: "notify.txt"
  33.         output_template: "{url} [{scheduled}]\n{author}"
  34.         missing: "live"
  35.  
  36.   filter.deduplicate:
  37.     entities:
  38.       - name: "subscriptions"
  39.         field: "video_id"
  40.  
  41.   filter.channel.notify:
  42.     entities:
  43.       - name: "subscriptions"
  44.         prior: 30
  45.         include_ongoing: true
  46.  
  47.  
  48. chains:
  49.   subscriptions_to_txt:
  50.     - channel:
  51.      - "subscriptions"
  52.     - filter.deduplicate:
  53.      - "subscriptions"
  54.     - filter.channel.notify:
  55.      - "subscriptions"
  56.     - to_file:
  57.      - "notify"
  58.  
Advertisement
Add Comment
Please, Sign In to add comment