Skip to content

Make sure series_name_plain is really plain#1611

Merged
cvium merged 1 commit intoFlexget:developfrom
mfonville:develop
Jan 5, 2017
Merged

Make sure series_name_plain is really plain#1611
cvium merged 1 commit intoFlexget:developfrom
mfonville:develop

Conversation

@mfonville
Copy link
Copy Markdown
Contributor

Needs to remove also some special character processing to produce filesystem-safe strings

Motivation for changes:

Current series_name_plain produced outputs that are unprocessable on e.g. Windows filesystems or Samba shares; for passing a better value to download-npo a further processed plain string is more practical

Detailed changes:

  • Rewrote the _strip_accents function into a _convert_plain function

@cvium
Copy link
Copy Markdown
Contributor

cvium commented Jan 5, 2017

Looks like you forgot to update it in a few places.

@mfonville
Copy link
Copy Markdown
Contributor Author

mfonville commented Jan 5, 2017

Ah, whoops, I thought I had them all. I will update the commit/PR

OK; apparently my current PR gave a lot of trouble with python3; I have now updated the function to be more in line with the original design, just adding an extra check against 'Punction'-category of unicode

Needs to remove also some special character processing to produce filesystem-safe strings
@mfonville
Copy link
Copy Markdown
Contributor Author

@cvium it should now be ok :)

@cvium cvium merged commit 845c0b3 into Flexget:develop Jan 5, 2017
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