Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
b8626dba
Commit
b8626dba
authored
Jun 03, 2014
by
Pierre SAGASPE
Committed by
Felix Paul Kühne
Jun 03, 2014
Browse files
Plex: fix streaming or downloading music file
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
da70a4cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCPlexParser.m
View file @
b8626dba
...
...
@@ -61,7 +61,7 @@
[
_dicoInfo
setObject
:
@"directory"
forKey
:
@"container"
];
[
_dicoInfo
setObject
:[
attributeDict
objectForKey
:
@"key"
]
forKey
:
@"key"
];
[
_dicoInfo
setObject
:[
attributeDict
objectForKey
:
@"title"
]
forKey
:
@"title"
];
}
else
if
([
elementName
isEqualToString
:
@"Video"
])
{
}
else
if
([
elementName
isEqualToString
:
@"Video"
]
||
[
elementName
isEqualToString
:
@"Track"
]
)
{
[
_dicoInfo
setObject
:
@"item"
forKey
:
@"container"
];
[
_dicoInfo
setObject
:[
attributeDict
objectForKey
:
@"key"
]
forKey
:
@"key"
];
[
_dicoInfo
setObject
:[
attributeDict
objectForKey
:
@"title"
]
forKey
:
@"title"
];
...
...
@@ -87,14 +87,14 @@
}
}
if
([
attributeDict
objectForKey
:
@"thumb"
]
&&
([
elementName
isEqualToString
:
@"Video"
]
||
[
elementName
isEqualToString
:
@"Directory"
]
||
[
elementName
isEqualToString
:
@"Part"
]))
if
([
attributeDict
objectForKey
:
@"thumb"
]
&&
([
elementName
isEqualToString
:
@"Video"
]
||
[
elementName
isEqualToString
:
@"Directory"
]
||
[
elementName
isEqualToString
:
@"Part"
]
||
[
elementName
isEqualToString
:
@"Track"
]
))
[
_dicoInfo
setObject
:[
NSString
stringWithFormat
:
@"%@%@"
,
_PlexMediaServerUrl
,
[
attributeDict
objectForKey
:
@"thumb"
]]
forKey
:
@"thumb"
];
}
-
(
void
)
parser
:(
NSXMLParser
*
)
parser
didEndElement
:(
NSString
*
)
elementName
namespaceURI
:(
NSString
*
)
namespaceURI
qualifiedName
:(
NSString
*
)
qName
{
if
(([
elementName
isEqualToString
:
@"Video"
]
||
[
elementName
isEqualToString
:
@"Directory"
]
||
[
elementName
isEqualToString
:
@"MediaContainer"
])
&&
[
_dicoInfo
count
]
>
0
)
{
if
(([
elementName
isEqualToString
:
@"Video"
]
||
[
elementName
isEqualToString
:
@"Track"
]
||
[
elementName
isEqualToString
:
@"Directory"
]
||
[
elementName
isEqualToString
:
@"MediaContainer"
])
&&
[
_dicoInfo
count
]
>
0
)
{
[
_containerInfo
addObject
:
_dicoInfo
];
_dicoInfo
=
[[
NSMutableDictionary
alloc
]
init
];
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment