mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 05:26:37 +00:00
Merge pull request #938 from tcely/patch-14
Some checks failed
Some checks failed
Rename media files from all sources by default
This commit is contained in:
commit
e3ce550e6a
12
README.md
12
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
|
||||
|
@ -99,18 +99,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<h2 class="truncate">Warnings</h2>
|
||||
<div class="collection-item">
|
||||
An upcoming release, after <b>2025-006-01</b>, will introduce automated file renaming.<br>
|
||||
To prevent this change from taking effect, you can set an environment variable before that date.<br>
|
||||
See the <a href="https://github.com/meeb/tubesync#warnings" rel="external noreferrer">GitHub README</a>
|
||||
for more details or ask questions using
|
||||
issue <a href="https://github.com/meeb/tubesync/issues/785" rel="external noreferrer">#785</a>.<br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<h2 class="truncate">Runtime information</h2>
|
||||
|
@ -108,11 +108,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)
|
||||
|
@ -8,7 +8,7 @@ CONFIG_BASE_DIR = BASE_DIR
|
||||
DOWNLOADS_BASE_DIR = BASE_DIR
|
||||
|
||||
|
||||
VERSION = '0.15.5'
|
||||
VERSION = '0.15.6'
|
||||
SECRET_KEY = ''
|
||||
DEBUG = False
|
||||
ALLOWED_HOSTS = []
|
||||
@ -186,8 +186,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
|
||||
|
Loading…
Reference in New Issue
Block a user