From 237098721aa077b4155dc2be4ca2466960f060be Mon Sep 17 00:00:00 2001 From: tcely Date: Tue, 8 Apr 2025 20:48:33 -0400 Subject: [PATCH 1/5] Rename media files from all sources by default --- tubesync/tubesync/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubesync/tubesync/settings.py b/tubesync/tubesync/settings.py index 0ac2b462..c9e9a2f3 100644 --- a/tubesync/tubesync/settings.py +++ b/tubesync/tubesync/settings.py @@ -180,8 +180,8 @@ COOKIES_FILE = CONFIG_BASE_DIR / 'cookies.txt' MEDIA_FORMATSTR_DEFAULT = '{yyyy_mm_dd}_{source}_{title}_{key}_{format}.{ext}' -RENAME_ALL_SOURCES = False -RENAME_SOURCES = None +RENAME_ALL_SOURCES = True +RENAME_SOURCES = list() # WARNING WARNING WARNING From d2c159c1b1f576c59d7275b9a035e4f5418e33d0 Mon Sep 17 00:00:00 2001 From: tcely Date: Tue, 8 Apr 2025 20:55:48 -0400 Subject: [PATCH 2/5] Default to `True` in local_settings.py.container --- tubesync/tubesync/local_settings.py.container | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubesync/tubesync/local_settings.py.container b/tubesync/tubesync/local_settings.py.container index cc20f73b..7b950b0c 100644 --- a/tubesync/tubesync/local_settings.py.container +++ b/tubesync/tubesync/local_settings.py.container @@ -100,11 +100,11 @@ SHRINK_OLD_MEDIA_METADATA = ( 'true' == SHRINK_OLD_MEDIA_METADATA_STR.strip().lo # TUBESYNC_RENAME_ALL_SOURCES: True or False -RENAME_ALL_SOURCES_STR = getenv('TUBESYNC_RENAME_ALL_SOURCES', False) +RENAME_ALL_SOURCES_STR = getenv('TUBESYNC_RENAME_ALL_SOURCES', True) RENAME_ALL_SOURCES = ( 'true' == RENAME_ALL_SOURCES_STR.strip().lower() ) # TUBESYNC_RENAME_SOURCES: A comma-separated list of Source directories RENAME_SOURCES_STR = getenv('TUBESYNC_RENAME_SOURCES') -RENAME_SOURCES = RENAME_SOURCES_STR.split(',') if RENAME_SOURCES_STR else None +RENAME_SOURCES = RENAME_SOURCES_STR.split(',') if RENAME_SOURCES_STR else list() VIDEO_HEIGHT_CUTOFF = getenv("TUBESYNC_VIDEO_HEIGHT_CUTOFF", 240, integer=True) From 3eb4707c7782b3859eaf560c7785270748344a52 Mon Sep 17 00:00:00 2001 From: tcely Date: Wed, 9 Apr 2025 12:46:23 -0400 Subject: [PATCH 3/5] Revert "Add renaming feature warning to the dashboard" --- tubesync/sync/templates/sync/dashboard.html | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tubesync/sync/templates/sync/dashboard.html b/tubesync/sync/templates/sync/dashboard.html index 23e1cdb2..af342800 100644 --- a/tubesync/sync/templates/sync/dashboard.html +++ b/tubesync/sync/templates/sync/dashboard.html @@ -99,18 +99,6 @@ -
-
-

Warnings

-
- An upcoming release, after 2025-006-01, will introduce automated file renaming.
- To prevent this change from taking effect, you can set an environment variable before that date.
- See the GitHub README - for more details or ask questions using - issue #785.
-
-
-

Runtime information

From e3d59b6cae9c35bb9b92ebd016fe10e9b51a0da0 Mon Sep 17 00:00:00 2001 From: tcely Date: Sun, 18 May 2025 09:32:53 -0400 Subject: [PATCH 4/5] Bump version --- tubesync/tubesync/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/tubesync/settings.py b/tubesync/tubesync/settings.py index 6ce95317..0303cd5a 100644 --- a/tubesync/tubesync/settings.py +++ b/tubesync/tubesync/settings.py @@ -7,7 +7,7 @@ CONFIG_BASE_DIR = BASE_DIR DOWNLOADS_BASE_DIR = BASE_DIR -VERSION = '0.14.1' +VERSION = '0.15.6' SECRET_KEY = '' DEBUG = False ALLOWED_HOSTS = [] From 460f2c06697eb7f56663cdfda829c96dd2525a77 Mon Sep 17 00:00:00 2001 From: tcely Date: Thu, 29 May 2025 00:52:31 -0400 Subject: [PATCH 5/5] Update README.md --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 2ea83c54..c5adc5c5 100644 --- a/README.md +++ b/README.md @@ -265,15 +265,7 @@ and less common features: # Warnings -### 1. Automated file renaming -> [!IMPORTANT] -> Currently, file renaming is not enabled by default. -> Enabling this feature by default is planned in an upcoming release, after `2025-006-01`. -> -> To prevent your installation from scheduling media file renaming tasks, -> you must set [`TUBESYNC_RENAME_ALL_SOURCES=False`](#advanced-configuration) in the environment variables or `RENAME_ALL_SOURCES = False` in [`settings.py`](../1fc0462c11741621350053144ab19cba5f266cb2/tubesync/tubesync/settings.py#L183). - -### 2. Index frequency +### 1. Index frequency It's a good idea to add sources with as long of an index frequency as possible. This is the duration between indexes of the source. An index is when TubeSync checks to see @@ -281,7 +273,7 @@ what videos available on a channel or playlist to find new media. Try and keep t long as possible, up to 24 hours. -### 3. Indexing massive channels +### 2. Indexing massive channels If you add a massive channel (one with several thousand videos) to TubeSync and choose "index every hour" or a similarly short interval; it's entirely possible that your TubeSync install may