From b00e8a4305b467df65e0524e4f0a61220d071218 Mon Sep 17 00:00:00 2001 From: zvon Date: Wed, 23 Jan 2019 02:10:01 +0100 Subject: [PATCH] Fix bug that assumes language is english --- tv_rename.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tv_rename.cpp b/tv_rename.cpp index 949f474..ecc011e 100644 --- a/tv_rename.cpp +++ b/tv_rename.cpp @@ -12,7 +12,10 @@ std::vector parseEpisodeNames( const std::string &season_code, cons while( true ) { pos = season_code.find("ge=\"" + language + "\" ", pos); if( pos != std::string::npos ) { - pos+= 17; + if( language == "en" ) + pos += 17; + else + pos += 29; while( isspace(season_code[pos]) ) pos++; auto end = season_code.find("<", pos);