Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download not working with multiple versions #5

Open
marcdieters opened this issue Feb 26, 2020 · 4 comments
Open

Download not working with multiple versions #5

marcdieters opened this issue Feb 26, 2020 · 4 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@marcdieters
Copy link

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 !

@rafajrichard
Copy link

I'm having the same issue.

@marcdieters
Copy link
Author

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.

@rafajrichard
Copy link

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

@ninthwalker
Copy link
Owner

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.

@ninthwalker ninthwalker self-assigned this Apr 13, 2020
@ninthwalker ninthwalker added bug Something isn't working enhancement New feature or request labels Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants
@ninthwalker @marcdieters @rafajrichard and others