-
Notifications
You must be signed in to change notification settings - Fork 179
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
Covers not showing, URL is different #2637
Comments
Issue is because of the zerofilled imdbid column in releases table. |
This issue seems to persist even after the 10-07-2019 release. I just reinstalled clean and this issue is still happening. |
The new issue is that TRIM(LEADING ‘0’ FROM ..... will remove ALL leading zero’s. |
Will need to use something like |
to fix it completely there shouldn't be zerofill at all on numbers with 7 or 8 characters already |
ImdbId column should be varchar and all issues would be solved, no zerofill, no removal of anything, store the value as it should be. |
Is there an easy way to make this change to an existing install? I'm not a SQL expert. |
@brewmarsh So long as you're comfortable editing the source files... .../nzedb/Movies.php line 314 needs to be changed. Currently I'm thinking the following will work, but I've not been able to test it with running code yet - works fine in a simple SELECT with MySQL Workbench.
|
OK, the code seems to compile. I'm getting errors from the "getMovieCovers.php" script still:
This seems to be using a valid IMDB ID now, so that's good. |
not quite - releases.imdbid also has the leading zero so: EDIT: the rest of the function also needs a huge rewrite as there are multiple instances where the "trimmed" imdbid is matched against the original (causing no matching) |
…hat covers and other image files are saved with the correctly padded id. Issue #2637.
@Bart39 JOINS shouldn't be affected by the leading zeroes. The field is an integer and the zerofill is simply a formatting option that doesn't change the value in any way. |
I solved this by going into the themes movies.tpl and changing the movie cover to
Basically let php fix it on display, the extra 0 does not prevent the imdb site from knowing what movie you want. Upcoming PR with my theme fixes/tweaks/additions should be made soon |
@JReming85, dev branch has the beginnings of a fix for this that will work across all themes (I believe). It changes the saving of the image files to add the expected zero(es) in the name. There will also be a separate script to fix an currnetly existing files to the same format. |
IMDB Covers now hosted by Amazon. Changed server to This fixes: WTF, no URL!! In nZEDb/nzedb/Movie.php change line 955 from: to: |
Updated the url on dev branch. |
###Expected behaviour
Covers should appear
###Actual behaviour
Covers do not show up, the URL for the cover is /covers/movies/06105098-cover.jpg however, if I was to change the URL to /covers/movies/6105098-cover.jpg it works. Is there a reason why the URL doesn't match
###Steps to reproduce the behaviour
Fresh install on Debian
The text was updated successfully, but these errors were encountered: