Commit 88926f3c authored by Felix Paul Kühne's avatar Felix Paul Kühne

UPnP/Plex/FTP: fix playing incorrect media if current listing is a mix of files and folders

(cherry picked from commit 989ede93)
parent 5a81f3ab
......@@ -166,7 +166,7 @@
{
if (_URL)
return [VLCMedia mediaWithURL:_URL];
return nil;
return [VLCMedia mediaAsNodeWithName:self.name];
}
@end
......@@ -110,7 +110,7 @@
- (VLCMedia *)media
{
if (!_URL)
return nil;
return [VLCMedia mediaAsNodeWithName:self.name];
return [VLCMedia mediaWithURL:_URL];
}
......
......@@ -214,7 +214,7 @@
- (VLCMedia *)media
{
if (!_URL)
return nil;
return [VLCMedia mediaAsNodeWithName:self.name];
VLCMedia *media = [VLCMedia mediaWithURL:_URL];
NSString *title = self.name;
......
......@@ -304,7 +304,7 @@
- (VLCMedia *)media
{
if (!_URL)
return nil;
return [VLCMedia mediaAsNodeWithName:self.name];
VLCMedia *media = [VLCMedia mediaWithURL:_URL];
NSString *title = self.name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment