mirror of
https://github.com/Jonny007-MKD/OTR-SaneRename
synced 2025-01-22 08:49:48 +01:00
Use data from EPG, too, if SE from filename does not work
This commit is contained in:
parent
ad5cfe41ae
commit
f87ba14680
1 changed files with 3 additions and 2 deletions
|
@ -472,6 +472,7 @@ function funcGetEpisodeInfoBySE {
|
||||||
|
|
||||||
wget_file="$PwD/episodes-${series_id}-${langCurrent}.xml"
|
wget_file="$PwD/episodes-${series_id}-${langCurrent}.xml"
|
||||||
|
|
||||||
|
#echo "grep -i \"bined_episodenumber>$episode_number\" \"$wget_file\" -A 10 | grep -i \"bined_season>$episode_season\" -B 1 -A 9"
|
||||||
episode_info=$(grep -i "bined_episodenumber>$episode_number" "$wget_file" -A 10 | grep -i "bined_season>$episode_season" -B 1 -A 9) # Get XML data
|
episode_info=$(grep -i "bined_episodenumber>$episode_number" "$wget_file" -A 10 | grep -i "bined_season>$episode_season" -B 1 -A 9) # Get XML data
|
||||||
|
|
||||||
funcGetEpisodeInfo_ParseData
|
funcGetEpisodeInfo_ParseData
|
||||||
|
@ -557,8 +558,8 @@ function doIt {
|
||||||
if [ -n "$episode_season" -a -n "$episode_number" ]; then # We already got info from filename
|
if [ -n "$episode_season" -a -n "$episode_number" ]; then # We already got info from filename
|
||||||
funcDownloadEpisodesFile
|
funcDownloadEpisodesFile
|
||||||
funcGetEpisodeInfoBySE
|
funcGetEpisodeInfoBySE
|
||||||
|
fi
|
||||||
else # We have to get info from EPG
|
if [ -z "$episode_info" ]; then # We have to get info from EPG
|
||||||
|
|
||||||
funcConvertName "$file_title"
|
funcConvertName "$file_title"
|
||||||
if [[ "$tmp" == $series_title_tvdb* ]] || [[ "$file_title" == $series_title_tvdb* ]] ||
|
if [[ "$tmp" == $series_title_tvdb* ]] || [[ "$file_title" == $series_title_tvdb* ]] ||
|
||||||
|
|
Loading…
Reference in a new issue