Skip to content

Add jinja2 templates to ftp_download and fix infinite loop bug.#2078

Merged
liiight merged 3 commits intoFlexget:developfrom
TomyMMX:develop
Feb 12, 2018
Merged

Add jinja2 templates to ftp_download and fix infinite loop bug.#2078
liiight merged 3 commits intoFlexget:developfrom
TomyMMX:develop

Conversation

@TomyMMX
Copy link
Copy Markdown
Contributor

@TomyMMX TomyMMX commented Feb 12, 2018

Motivation for changes:

ftp_download is really not useful without the ability to use jinja2 templates.
Also made a quick fix for cases when we run into download problems and the download loop starts to loop forever.

Detailed changes:

  • Really simple fix and feature so all is explained above.

Tomaz Toplak added 2 commits February 12, 2018 19:44
if not os.path.isdir(config['ftp_tmp_path']):
log.debug('creating base path: %s' % config['ftp_tmp_path'])
os.mkdir(config['ftp_tmp_path'])
to_path = pathscrub(entry.render(config['ftp_tmp_path']))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to catch RenderError here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liiight fixed as per your comment.

@liiight liiight merged commit af631d9 into Flexget:develop Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants