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

My changes to periscope #1

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

wackou
Copy link

@wackou wackou commented May 10, 2011

This contains all my changes to periscope, in no order:

  • setup.py now produces an installable sdist suitable for PyPI
  • refactored and added a few methods to SubtitleDB to make it more versatile
  • fixed quite a few plugins and wrote a new TvSubtitles plugin

wackou added 16 commits May 10, 2011 21:59
This is not a problem, as when checking out files on Windows git will convert the EOLs automatically to Windows ones.
…or the subtitles

This avoids overwriting a subtitle if it was already there
…ly (eg: BierDopje can't be imported on Mac OS X)
 - periscope.py has a new attemptDownloadSubtitleText which returns the content of the subtitle instead of writing it to the disk
 - SubtitleDB.createFile() has been modified to be able to download and write any type of file. Plugins can specify 'forceType' == one_of([ 'zip', 'gz', 'srt', 'sub' ]) (inside the returned subtitle object) to tell explicitly which type of file they provide to the createFile method
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