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

Bug Fixes for Inconsistent Download Location with FlexGet #866

Open
wants to merge 10 commits into
base: stable
Choose a base branch
from

Conversation

sasese
Copy link

@sasese sasese commented Nov 9, 2014

The commits in this pull request resolve both bugs which cause Inconsistent Download Locations with FlexGet (issue #808).

The modification of pyPackage resolves the first bug, which causes download locations passed by FlexGet to be mangled from (for example) X:\Intended\Folder to D:\Default pyLoad Download Folder\XIntendedFolder.

The modifications of the API and FlexGet's pyload output plugin resolve the second bug, which causes download locations passed by FlexGet to be mangled from (for example) X:\Intended\Folder to D:\Default pyLoad Download Folder\Package Name. The modifications of the API are such that they maintain compatibility with FlexGet for installations which have not been updated to the new pyload output plugin, although the fix won't work until it is.

This is a fix for the second of [two bugs mangling download paths passed by FlexGet](pyload#808 (comment)). Requires a modification of FlexGet to work.
The original modification did not account for folder_per_package being set to no, causing folder parameters in that scenario to be set to "". As the introduction of the parameter includes a default value of "", the else clause which used to do this and now causes issues can simply be deleted to accommodate the change. Thanks go to Firefly for noting the bug and its simple solution.
@vuolter vuolter added the enhancement New feature or bugfix label Nov 9, 2014
@vuolter vuolter added this to the 0.4.10 milestone Nov 9, 2014
Revisited this bug fix to account for the recent inclusion of save_path in the AddPackage function after the pull request was flagged as a conflicting merge.
While the new official code removes save_path from its specific point of proper use to folder names in general. This will again strip colons and slashes from paths added via the API, mangling download paths from, for example, X:\Intended\Folder to D:\Default pyLoad Download Folder\XIntendedFolder. The prior code is clunkier but fit-for-purpose.
Mixed the recent official changes into the bug fixes for [Inconsistent Download Locations with FlexGet](pyload#808). Looks solid. Pushing to sasese\stable and into the pull request.
Merge API fixes into sasese\stable for merge with pyLoad.
Removed the inline description of the modification and an unintended addition of leading spaces. Functionally identical: the deletion of save_path from the folder property, to prevent the bug which caused download locations, added via the API, to be mangled from X:\Intended\Folder to D:\Default pyLoad Download Folder\XintendedFolder, by stripping special characters from the path. The intent of the original code is unclear, but may have been a hold-over.
@sasese
Copy link
Author

sasese commented Nov 17, 2014

@vuolter I checked out the conflict: it is good to go, changes cover the new behavior - and integrate your new code. If not folder tests whether the new parameter is used and the omission of else: folder="" prevents folder from being emptied when folder_per_package is set to no (see link), and has become obsolete as the new folder parameter defaults to "".

@vuolter vuolter added testing API change Something that eventually breaks current API and removed testing labels Nov 22, 2014
@sasese
Copy link
Author

sasese commented Nov 30, 2014

@vuolter I just noticed I submitted the pull request to the wrong branch. Should I resubmit a pull request from sasese\stable to pyload\master?

@sasese
Copy link
Author

sasese commented Nov 30, 2014

Note: development is based on the correct master branch.

@vuolter
Copy link
Contributor

vuolter commented Dec 4, 2014

API will not change until 0.4.11 u.u
...thinking about a workaround to that...

@vuolter vuolter modified the milestones: 0.4.11, 0.4.10 Feb 9, 2015
@snickers2k
Copy link

any updates on this? i would even pay to have a working workaround before 0.4.11 ^^ waiting already over a year :(
but of course.. there is a lot to do right now at major issues..

@Roburetto
Copy link

Roburetto commented Sep 10, 2016

Two years down the road these two bug fixes are still need and prove to work with most recent Flexget pyload plugin,

To cut a long story short, one should replace the files from the 0.4.9 2011 release with these two:

pyload/module/Api.py - a835336 on Nov 15, 2014

pyload/module/PyPackage.py - ef704fe on Nov 16, 2014

@Roburetto
Copy link

Roburetto commented Oct 4, 2016

@timofonic It would seem so. If you compare with Api.py from stable branch (dated 22 Nov 2014) you will see these fixes are not applied there. They seem to be on the Pull Request List still to be processed. Eventually :/

@CLAassistant
Copy link

CLAassistant commented Aug 27, 2019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Something that eventually breaks current API enhancement New feature or bugfix
Development

Successfully merging this pull request may close these issues.

None yet

5 participants