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

[IMPROVEMENT] Netflix2trakt.py #28

Open
Nackophilz opened this issue Jan 25, 2023 · 0 comments
Open

[IMPROVEMENT] Netflix2trakt.py #28

Nackophilz opened this issue Jan 25, 2023 · 0 comments

Comments

@Nackophilz
Copy link

Hey !

I add some problem with the script, because my CSV file is maybe .. To oversize (since 2015 >>)

So i have to add this two little thing :

1- Correct the accent, just for the view :
pip insttall ftfy (update requirement.txt)

On line 14 add :
from ftfy import fix_text
After line 39 :
entry = row["Title"]
entry = fix_text(entry)

2- Open the csv file in utf8 encoding, with oversize file , that could be a problem to the script to read correcly without this :
So replace -> with open(config.VIEWING_HISTORY_FILENAME, mode="r") as csvFile:
With -> open(config.VIEWING_HISTORY_FILENAME, mode="r", encoding="utf-8") as csvFile:

And you're ready to go

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

No branches or pull requests

1 participant