[ antp.be > Forum ]

[ FAQFAQ - SearchSearch - MemberlistMemberlist - UsergroupsUsergroups - ]

[ RegisterRegister - ProfileProfile - Log in to check your private messagesLog in to check your private messages - Log inLog in ]


Create new field

 
Post new topic   Reply to topic    www.antp.be Forum Index -> Ant Movie Catalog > Scripts
Author Message
emueyes
PostPosted: 2017-06-13 12:55:47    Post subject: Create new field Reply with quote
View user's profile Send private message Hi

I'm new to scripting and need a bit of a push. I use the IMDB script for pulling metadata and would like to modify it slightly. In brief I want to create and populate a new field.

I have noticed that the IMDB trailers can be found at

http://www.imdb.com/title/ttnnnnnnn/

where ttnnnnnnn is the IMDB UID for the movie. I also notice in the IMDB script that the movie URL is created around the lines
Code:

  MovieURL := 'http://imdb.com/title/tt' + MovieNumber;
  // URL
  if CanSetField(fieldURL) then
    SetField(fieldURL, MovieURL);


in the IMDB script. So.. I can easily cat together a URL for the trailer it seems, the movie UID is there already for me and I can just create a string with the required pieces.

My question is, then what? I need to assign the created trailer URL to a variable that I can get to from the reporting markup pages. Do I just make one up?

I see also there's a script that uses Youtube trailers so there's a choice I guess. Bit by bit though I'd like to learn more about AMC hopefully without driving you guys nuts with my questions.

Many thanks
emu
antp
Site Admin
PostPosted: 2017-06-13 18:16:27    Post subject: Reply with quote
View user's profile Send private message Visit poster's website that URL is the "global" page of a movie on IMDb, not a direct link to the trailer
emueyes
PostPosted: 2017-06-15 14:37:09    Post subject: Reply with quote
View user's profile Send private message OK, so I'm looking at it the other way now., in the multi page report output, I'm trying to take the field $$ITEM_URL and make it an actual HTML link in the report output. I've done my best to quote things, but am ending up with what looks like something local to the script ie

'<a href="'$$ITEM_URL'">IMDB</a>'

is output as

" target="_blank" rel="nofollow">file:///Toh well'http://imdb.com/title/tt4238858'

Not too bad, except for the absolute path onto my local drive. The link doesn't work because the reference to file:\\\T:\ is there.

What I'm after is an actual link to the IMDB page in the report.
antp
Site Admin
PostPosted: 2017-06-15 16:52:45    Post subject: Reply with quote
View user's profile Send private message Visit poster's website Remove the single quotes, there are too many quotes there
emueyes
PostPosted: 2017-06-16 01:58:44    Post subject: Reply with quote
View user's profile Send private message That worked, thanks.
Display posts from previous:   
View previous topic :: View next topic  
Post new topic   Reply to topic    www.antp.be Forum Index -> Ant Movie Catalog > Scripts All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
Template made by antp