Commit c5664a01 authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Felix Paul Kühne
Browse files

Plex: display a correct title in the navigation bar


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent b8626dba
......@@ -84,7 +84,7 @@
if ([_PlexServerPath isEqualToString:@""])
titleValue = _PlexServerName;
else
titleValue = [_PlexServerPath lastPathComponent];
titleValue = [_mutableObjectList[0] objectForKey:@"libTitle"];
self.title = titleValue;
......
......@@ -57,6 +57,8 @@
[_dicoInfo setObject:[attributeDict objectForKey:@"friendlyName"] forKey:@"libTitle"];
else if ([attributeDict objectForKey:@"title1"])
[_dicoInfo setObject:[attributeDict objectForKey:@"title1"] forKey:@"libTitle"];
if ([attributeDict objectForKey:@"title2"])
[_dicoInfo setObject:[attributeDict objectForKey:@"title2"] forKey:@"libTitle"];
} else if([elementName isEqualToString:@"Directory"]) {
[_dicoInfo setObject:@"directory" forKey:@"container"];
[_dicoInfo setObject:[attributeDict objectForKey:@"key"] forKey:@"key"];
......
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