mirror of
				https://github.com/Jonny007-MKD/OTR-SaneRename
				synced 2025-10-30 15:35:33 +01:00 
			
		
		
		
	Search TvDB for series: Don't forget to remove wildcards
This commit is contained in:
		
							parent
							
								
									de6ab0957f
								
							
						
					
					
						commit
						67a808ef4a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -259,6 +259,7 @@ function funcGetSeriesIdFromTvdb { | ||||||
| 		fi | 		fi | ||||||
| 
 | 
 | ||||||
| 		if $shorten; then | 		if $shorten; then | ||||||
|  | 			title="${title//\*/ }"											# Remove wildcards from current run | ||||||
| 			tmp="${title% *}"												# Shorten the title by one word | 			tmp="${title% *}"												# Shorten the title by one word | ||||||
| 			if [ ${#tmp} -le 4 ] || [ "$tmp" == "$title" ]; then			# Too short or was not shortened | 			if [ ${#tmp} -le 4 ] || [ "$tmp" == "$title" ]; then			# Too short or was not shortened | ||||||
| 				break; | 				break; | ||||||
|  | @ -266,7 +267,7 @@ function funcGetSeriesIdFromTvdb { | ||||||
| 			title="$(echo $tmp | sed -e 's/^[^a-zA-Z0-9]*//' -e 's/ *$//')" | 			title="$(echo $tmp | sed -e 's/^[^a-zA-Z0-9]*//' -e 's/ *$//')" | ||||||
| 			shorten=false; | 			shorten=false; | ||||||
| 		else | 		else | ||||||
| 			title="${title// /*}" | 			title="${title// /*}"											# Replace spaces with wildcards | ||||||
| 			shorten=true; | 			shorten=true; | ||||||
| 		fi | 		fi | ||||||
| 	done | 	done | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Jonny007-MKD
						Jonny007-MKD