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

plex: fix networking if user didn't provide a port

parent 722b7598
......@@ -51,7 +51,7 @@
if (self) {
_title = name;
_plexServerAddress = addressOrName;
_plexServerPort = portNumber;
_plexServerPort = portNumber.intValue > 0 ? portNumber : @(32400);
_plexServerPath = path;
_plexAuthentification = auth;
......@@ -188,7 +188,6 @@
}
_thumbnailURL = thumbPath.length ? [NSURL URLWithString:thumbPath] : nil;
_duration = dictionary[@"duration"];
_fileSizeBytes = dictionary[@"size"];
......
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