IMDB link doubles optional "tt" - 5.5.1

Report your bugs here - if someone else has already mentioned the same bug, just add on to their post with as much info as possible to make the hunting easier.
Post Reply
srogers
Contributor
Contributor
Posts: 5
Joined: Wed Aug 18, 2004 7:26 pm
Location: Austin, TX

IMDB link doubles optional "tt" - 5.5.1

Post by srogers »

Using 5.5.1 - regarding the "Extra" page where the IMDB number is listed: updating from IMDB works whether the field has the raw number, like "0435761" or the preceding "tt" like "tt0435761" as it would appear in the IMDB URL, for example: http://www.imdb.com/title/tt0435761

That is useful, because I often just wind up copying that number out of the URL, and so a lot of my IMDB fields have the nonsense "tt" prefix.

However, if you click the little Safari icon next to the box, the URL generated has "tt" prepended to it every time. So if the field has "tt0435761" then the browser gets an incorrect URL, like: http://www.imdb.com/title/tttt0435761/

It would be great if the "tt" were optional for the browser link too.
User avatar
FineWine
Site Admin
Posts: 904
Joined: Wed May 28, 2008 2:41 am
Location: Tauranga, New Zealand

Re: IMDB link doubles optional "tt" - 5.5.1

Post by FineWine »

That should be very simple for conor using an "if" and "if not" statement in the code. But there could be other considerations in the code that we are not aware of. Third party sites have a habit of changing their 'api' code without letting users of their 'api' aware of the change and it is only us end users that pick it up and are able to let the developers know there has been a change.

Thanks for the heads up.
User avatar
Conor
Top Dog
Posts: 5346
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: IMDB link doubles optional "tt" - 5.5.1

Post by Conor »

Done it the DVDpedia beta.

If you wanted to clean up the prefixed "tt" for clarity, you can do so with the open SQL backend. In Terminal run the following three lines:

Code: Select all

sqlite3 ~/Library/Application\ Support/DVDpedia/Database.dvdpd
update zentry set zimdb = replace(zimdb, "tt", "");
.exit
Of course, double backup your data file first, as it should already be being backed up.
Post Reply