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

Support for foreign posters and backdrop images #7

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

Conversation

pldemone
Copy link

@pldemone pldemone commented Jun 2, 2016

Please find included a changed version of the tw-video-scraper script. Please feel free to cherry pick code if you don't want all the changes. I'm using the new version for few days on my system without any problem.

== Changed functions:

  • Added support for foreign posters for Movies (Option: outputlang; Default: 'en-US)
  • Added support for backdrop posters instead of stretching standard posters (Option: usebackdrop and maxwidthforbackdrop)
  • Wrapper script for cgi-jpegscale added. Use this script if you want different posters for different sizes.
  • Makefile.linux for faster installation added (Prefix: /opt/twonky; Data location: /var/twonky/twonkyserver)

== Incompatible changes

  • Location of Twonkyserver changed from /usr/local/twonky/ to /opt/twonky
  • Location of tw-video-scraper.db changed to the current Twonkyserver location
  • Location of tmpdir changed to the Twonkyserver tmp location
  • symbolic folders for 640x480 and 800x600 added
  • OriginalBack folder added

pldemone and others added 18 commits May 31, 2016 09:15
The configuration was changed to pass our internal data structure. The changes are not compatible with the standard configuration from Twonky. Therefore, they should be dropped by upstream.
Add or remove the title from Matroska (MKV) files. Write the themoviedb.org title to the MKV file or delete the tag if the title is not available.
Fetch foreign cover and title from the moviedb. Use English as fallback if the language is not available. Default language is English.
* Resize handling corrected
* Handling of Image.open corrected
* Console.info output fixed
Use backdrop images if the width of the output image is greater than the height. Ignore big images. The limit can be defined within the "maxwidthforbackdrop" option
Small makefile for automatic installation added
* Private database and cache definitions removed
* Automatic detection of several directories added;
* Change common variabled during script installation
Delete an entire directory tree using shutil.rmtree
Use this wrapper if you want different covers/posters for different resolutions. As example poster for 160x160 and backdrop for 640x480. You have to use "NAME (YEAR).mkv" as file name or change the wrapper for automatic movie detection.
Title correction is disabled per default. User has to enable this function after the installation. Makefile.linux will detect a German version of the Twonkyserver installation and provide a simple "sed" command for this task.
@danielvijge
Copy link
Owner

Great, thanks. I'll take a look at the changes and merge them

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