Closed Pyker closed 2 months ago
This PR fixes a bug introduced in https://github.com/mikf/gallery-dl/commit/e92a9ae34389bb1d429b75ee981dde770b962b36#diff-5741d04464e95eab8716d83190078fd31be0ad91fed8da24cd390b9447239d35R522.
Before the referenced commit, the code read photo.update(self.api.photos_getAllContexts(self.item_id)). After the commit, the code became the same (see how the EXIF-related code above was updated correctly), referencing self.api, which doesn't exist in this new context, which completely breaks this functionality since that exception will always become a warning, when it really should've been caught while reviewing the changes:
photo.update(self.api.photos_getAllContexts(self.item_id))
self.api
I honestly couldn't figure out how to name this commit, so I welcome any suggestions.
Thank you very much for catching and even fixing this.
This PR fixes a bug introduced in https://github.com/mikf/gallery-dl/commit/e92a9ae34389bb1d429b75ee981dde770b962b36#diff-5741d04464e95eab8716d83190078fd31be0ad91fed8da24cd390b9447239d35R522.
Before the referenced commit, the code read
photo.update(self.api.photos_getAllContexts(self.item_id))
. After the commit, the code became the same (see how the EXIF-related code above was updated correctly), referencingself.api
, which doesn't exist in this new context, which completely breaks this functionality since that exception will always become a warning, when it really should've been caught while reviewing the changes: