ninthwalker / saverr

Download and save media from Plex Servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download not working with multiple versions

marcdieters opened this issue · comments

Hello,

If a source has multiple versions (a blue 2 or 3 in the top corner in plex), downloading throws an error.
Can this be added to the app so a version can be chosen and downloading does work.

Thanks !

I'm having the same issue.

I created a small workaround. Place the following code on lines 1407 and 1408.

if ($mediaInfo.count -gt 1) {                   
   $dlURL = "http://" + $settings.server + $mediaInfo[0].key + "?X-Plex-Token=" + $settings.serverToken
   $script:dlName = Split-Path $mediaInfo[0].file -Leaf
} else {
    $dlURL = "http://" + $settings.server + $mediaInfo.key + "?X-Plex-Token=" + $settings.serverToken
     $script:dlName = Split-Path $mediaInfo.file -Leaf
}

This will always get the first version.
If there is only one version, it will take that.

This will only work for single tv show episodes.

Does this only work for TV Shows? Because on movies it still throws an error.

This has been partially implemented in the most recent release (1.1.0).
Single movies and TV shows work if there are multiple. I need to spend a little more time on making the same work when downloading full seasons/albums as it's a bit more tricky.

Leaving this issue open until I fix it for everything. Thanks both for letting me know. I didn't even think to try and test that. I don't keep multiple versions of the same ep/movie much.