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

Getting BadZipFile Exception while downloading the subtitle #43

Open
RamolaWeb opened this issue Jun 6, 2017 · 1 comment
Open

Getting BadZipFile Exception while downloading the subtitle #43

RamolaWeb opened this issue Jun 6, 2017 · 1 comment

Comments

@RamolaWeb
Copy link
Contributor

When I was downloading the subtitle of the Serial , I was getting the error as follow due to which I was not able to download the subtitle.
Error in fetching subtitle for /home/sahil/Movie/Breaking Bad/Season 2/Breaking.Bad.S02E02.BluRay.720p.x264.mkv
Error (<class 'zipfile.BadZipFile'>, BadZipFile('File is not a zip file',), <traceback object at 0x7f7bab887c48>)

@RamolaWeb
Copy link
Contributor Author

Then I just figure out the error by looking at the script and I figure out that the file created was not of the format of the zip and I also then change the code to as follow with zipfile.ZipFile(root2+".zip",mode="w") as subfile but then I was getting an error at the subfile.write(chunk) telling that the null character embedded in the Path.
@mohanraj-r Please help to figure out.

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