Ticket #292 (closed defect: fixed)
- Remember to check that the log messages do not contain personal information.
- Tickets containing names or links to copyrighted material will be deleted. Clean them out!
- For more permissions: register or login with flexget / anon
- Format your config and logs with {{{ ... }}} wiki formatting
download output plugin can't handle gzipped nzbs from nzbmatrix
| Reported by: | ejstacey@… | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.0 |
| Component: | Plugins | Version: | 1.0 (bleeding edge) |
| Keywords: | nzb gzip download | Cc: |
Description
I'm running r722.
When using the download output plugin with the nzbmatrix rss feeds (in download mode, VIP account on site required), the accepted file is downloaded as [file name here].nzb. The file is a gzipped version though, so maybe it should be properly labeled as [file name here].nzb.gz? That's what hellanzb expects, at least.
I "fixed" this by going to ./flexget/plugins/output_download.py and changing:
# combine to full path + filename, replace / from filename (#208)
destfile = os.path.join(path, entry.get('filename', entry['title']).replace('/', '_'))
to
# combine to full path + filename, replace / from filename (#208)
destfile = os.path.join(path, entry.get('filename', entry['title']).replace('/', '_') + '.gz')
This is obviously a stupid hack, but I don't know python well enough to do something better ;) It works for me because I only use one rss feed on flexget.
Suggested fixes: - Use the *nix file command equivalent for python to detect gzipped/zipped/etc files and give an appropriate extension. - Add another option to the download output plugin to add an extension to all files downloaded from that rss feed (or whatever the input plugin is).
Not great ideas, but the only things I could think of offhand.
Thanks!

