Config


How to use configfile in svtplay-dl

commandline argument to svtplay-dl will override the values from the config. the script use yaml for the config.

Path to config:

linux / macOS

~/.svtplay-dl.yaml

ex /home/johan/.svtplay-dl.yaml

Windows

You need to create the directory under the appdata folder

%APPDATA%\svtplay-dl\svtplay-dl.yaml

ex c:\users\johan\appdata\roaming\svtplay-dl\svtplay-dl.yaml

keywords:

filename

Example configs:

simple

This will output all files to the folder ~/grejgrej/ in your home directory

default:
  path: ~/grejgrej

service

This will output all files to the folder ~/grejgrej/ in your home directory. if downloading a video from dplay. it will use [email protected] as username and superHemligt as password

default:
  path: ~/grejgrej

service:
  dplay:
    username: [email protected]
    password: superHemligt

Downloading a video from svtplay will save the file to /storage/video/svtplay, it will exclude every file with a or b or c in the name and if the quality is between 837 and 1837. it will write a filename without the id number in it.

default:
  path: ~/grejgrej

service:
  svtplay:
    path: /storage/video/svtplay
    exclude: a,b,c
    quality: 1337
    flexibleq: 500
    filename: "{title}.s{season}e{episode}.{episodename}-{service}.{ext}"

This will download all episodes with subtitles and audio merged in to the video, sort them in to subfolders within ~/svtplay-dl and finally write the file name without the service attached.

  default:
    path: ~/svtplay-dl
    subtitle: true
    merge_subtitle: true
    all_episodes: true
    subfolder: true
    filename: "{title}.s{season}e{episode}.{episodename}.{ext}"