Commit 01b022b7 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

UPnP: give media objects a good title instead of the on-the-fly encoding...

UPnP: give media objects a good title instead of the on-the-fly encoding pseudo-random hash some servers provide

This helps finding good subtitles
parent 31e0d9b4
......@@ -292,7 +292,14 @@
{
if (!_URL)
return nil;
return [VLCMedia mediaWithURL:_URL];
VLCMedia *media = [VLCMedia mediaWithURL:_URL];
NSString *title = self.name;
if (title.length) {
[media setMetadata:self.name forKey:VLCMetaInformationTitle];
}
return media;
}
@end
......@@ -356,7 +363,14 @@
{
if (!_URL)
return nil;
return [VLCMedia mediaWithURL:_URL];
VLCMedia *media = [VLCMedia mediaWithURL:_URL];
NSString *title = self.name;
if (title.length) {
[media setMetadata:self.name forKey:VLCMetaInformationTitle];
}
return media;
}
@end
Supports Markdown
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