Skip to content
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

fixed: obtaining movie name for stacks #15736

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

notspiff
Copy link
Contributor

Description

In particular this was broken for stacks with files inside archives in in separate directories (cdx/*.rar)

@notspiff notspiff added this to the Leia 18.2-rc1 milestone Mar 14, 2019
@notspiff
Copy link
Contributor Author

silence is acceptance?

for( int i=1;i<items.Size();++i)
{
items[i]->m_strDVDLabel = GetDirectory(items[i]->GetPath());
if (IsProtocol(items[0]->m_strDVDLabel, "rar") || IsProtocol(items[0]->m_strDVDLabel, "zip"))
if (HasParentInHostname(url2))
items[i]->SetPath(GetParentPath(items[i]->m_strDVDLabel));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be dynpath here and the line below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not afaik, as these ops only happens based on files, not library entries or the likes, ie, it works fine as-is. i'd prefer to keep this on topic.

@notspiff notspiff merged commit 9b00eee into xbmc:master Apr 3, 2019
@notspiff notspiff deleted the fix_stack_movie_name branch April 3, 2019 07:20
@Rechi Rechi added the Type: Fix non-breaking change which fixes an issue label Apr 3, 2019
@BAzrael
Copy link

BAzrael commented Jun 9, 2019

It looks like the change in GetMovieName() now incorrectly ignores the option *bUseFolderNames" in the case of stacks.

And indeed in Kodi 18.2, if you activate the option "Movies are in separate folders that match the movie title" and try to import two files that are in a folder with a movie name and are named e.g. "part1.mkv" and "part2.mkv", the movie lookup and thus the import will fail.

@BAzrael BAzrael mentioned this pull request Jun 9, 2019
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants