tubesync icon indicating copy to clipboard operation
tubesync copied to clipboard

how i can modify muliple source at once?

Open somethingGoneWrong opened this issue 2 years ago • 2 comments

hi, i have a question/feature request: how i can modify muliple source at once? I need to change the quality of the video to 1080p for 10 sources of 40 in total, What is the best solution? At the moment I change them one at a time, but it is slow and prone to errors; a possible solution would be to create source categories and link each source to a specific category; changing only the source category would change all the sources linked to it. Does it make sense, or are there simpler solutions? thx

somethingGoneWrong avatar Feb 04 '23 08:02 somethingGoneWrong

There isn't really any way currently to edit multiple sources at once through the web UI. If you want to just edit all sources at once you or you want to, for example, change all 720p sources to be 1080p sources you could run an SQL query to update them but that's about it for the moment. Find where your db.sqlite3 file is in your config directory you set for tubesync and run:

$ sqlite3 db.sqlite3

Then you can execute something like this to update all 720p sources to be 1080p on the SQLite shell:

sqlite> update sync_source set source_resolution = '1080p' where source_resolution = '720p';

Then use .quit to exit back to the shell and restart the tubesync container, all your 720p sources will now be 1080p. This won't affect previously downloaded media items, but future media for your sources will be downloaded at 1080p.

meeb avatar Feb 04 '23 09:02 meeb