mirror of
https://github.com/Jonny007-MKD/OTR-SaneRename
synced 2025-01-22 08:49:48 +01:00
Fixed bug with episode titles in file names
This commit is contained in:
parent
c4dfc4212e
commit
c284b6544e
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ function doIt {
|
||||||
funcAnalyzeFilename # Get info from $file_name
|
funcAnalyzeFilename # Get info from $file_name
|
||||||
funcGetSeriesId # Get series ID from cache or TvDB
|
funcGetSeriesId # Get series ID from cache or TvDB
|
||||||
|
|
||||||
if [ -n "$episode_title_set" ] && [ "$file_title" != "$series_title" ]; then # Title in file is not series title. This means the episode title is also in the file title
|
if [ -z "$episode_title_set" ] && [ "$file_title" != "$series_title" ]; then # Title in file is not series title. This means the episode title is also in the file title
|
||||||
episode_title="${file_title#$series_title }"
|
episode_title="${file_title#$series_title }"
|
||||||
eecho -e " \t\tEpisode title:\t$episode_title"
|
eecho -e " \t\tEpisode title:\t$episode_title"
|
||||||
episode_title_set=true # used in doItEpisodes (whether the episode title shall be search in epg)
|
episode_title_set=true # used in doItEpisodes (whether the episode title shall be search in epg)
|
||||||
|
|
Loading…
Reference in a new issue