-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[videodatabase] fix 'replace file names with library titles' not working... #6969
Conversation
@@ -6880,10 +6880,12 @@ std::string CVideoDatabase::GetContentForPath(const std::string& strPath) | |||
// 1. if episodes are in the path then we're in episodes. | |||
// 2. if no episodes are found, and content was set directly on this path, then we're in shows. | |||
// 3. if no episodes are found, and content was not set directly on this path, we're in seasons (assumes tvshows/seasons/episodes) | |||
std::string sql = PrepareSQL("select count(1) from episode_view where strPath = '%s' limit 1", strPath.c_str()); | |||
std::string sql = PrepareSQL("SELECT count(1) FROM episode_view WHERE SUBSTR(strPath,1,%i) = '%s' LIMIT 1" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
90a2568
to
edc2c94
Compare
Updated and rebased. Now using |
…ing for episodes in directories
edc2c94
to
0cee313
Compare
Updated. |
Thanks, jenkins build and merge |
@mkortstiege for me, this completely breaks replacement of tv show file names by db titles. Directory structure:
|
Files node .. pff ;) Will check. |
This fixes a files node issue where episodes in sub-directories are not properly replaced with library titles.
@Montellese for review please.