Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/MP1-4386-BUG-DVD_resume_…
Browse files Browse the repository at this point in the history
…not_working_with_physical_DVD_Disks'
  • Loading branch information
Sebastiii committed Nov 8, 2014
2 parents 44087d0 + b83cbf9 commit d18ae5b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mediaportal/Databases/Video/SqlLite/VideoDatabaseSqlLite.cs
Expand Up @@ -874,12 +874,11 @@ public int GetPath(string strPath)

if (Util.Utils.IsDVD(strPath))
{
// It's a DVD! Any drive letter should be OK as long as the label and rest of the path matches
// It's a DVD! Any drive letter should be OK as long as the label and rest of the path matches
cdlabel = GetDVDLabel(strPath);
DatabaseUtility.RemoveInvalidChars(ref cdlabel);
strPath = strPath.Replace(strPath.Substring(0, 1), "_");
cdlabel = GetDVDLabel(strPath);
DatabaseUtility.RemoveInvalidChars(ref cdlabel);
strSQL = String.Format("SELECT * FROM path WHERE strPath = '{0}' AND cdlabel = '{1}'", strPath,
cdlabel);
strSQL = String.Format("SELECT * FROM path WHERE strPath LIKE '{0}' AND cdlabel LIKE '{1}'", strPath, cdlabel);
}
else
{
Expand Down

0 comments on commit d18ae5b

Please sign in to comment.