English > Support

Allmovie.com https

<< < (8/15) > >>

afrocuban:
Thanks Ivek.

For example, instead http://www.allmovie.com/movie/fruitvale-station-v575941 I now got http://www.allmovie.com/movie/v575941

so it works flawlessly and please include it to a new version!


May I kindly ask you to teach me how to remove year from Title1 custom field? You can post piece of code here, and I will paste it in my sample of AllMovie script. I need it badly, because how it is now I'm getting year twice: once from Title1 and once from regular "Year" field so in the skin, year is visible twice.




afrocuban:
I think I got it.

Instead of
AddCustomFieldValueByName('Title1',TmpStr2);

I put

AddCustomFieldValueByName('Title1',TmpStr1);

Am i right?

Ivek23:

--- Quote from: afrocuban on January 26, 2021, 04:15:54 pm ---I think I got it.

Instead of
AddCustomFieldValueByName('Title1',TmpStr2);

I put

AddCustomFieldValueByName('Title1',TmpStr1);

Am i right?

--- End quote ---

Yes, you are right. If that doesn't work, add this piece of code


--- Quote ---      TmpStr2:=Copy(HTML,curPos,endPos-curPos);
        debug_pos1:=Pos('(',TmpStr2);   
   if debug_pos1 >0 then TmpStr2:=Copy(TmpStr2,0,debug_pos1-1);
   AddCustomFieldValueByName('Title1',TmpStr2);
   LogMessage('      Parse Results Title2: '+TmpStr2);
--- End quote ---

afrocuban:
Thanks Ivek. It looks like it works, but I'll keep on my mind piece of code as a backup.

Best regards

afrocuban:

--- Quote from: afrocuban on January 26, 2021, 03:56:02 pm ---Thanks Ivek.

For example, instead http://www.allmovie.com/movie/fruitvale-station-v575941 I now got http://www.allmovie.com/movie/v575941

--- End quote ---

.. but both url''s will be kept in the URL field. Is there a way to automatically clean all "old" url's? Also, now I think of a scenario I had. I had mass import of episodes from AllMovie.com, for example "Modern Family". For some episodes that has common titles, like "Halloween" I wasn't offered to pick the title, but the script automatically imported movie "Halloween" by John Carpenter (https://www.allmovie.com/movie/halloween-v21317) and not the episode of the same title - (https://www.allmovie.com/movie/modern-family--halloween-v544859).

But, I wasn't worried, because after each season mass import, I went to manually check URL field of each episode, and if url didn't contain "modern family" in allmovie url (please compare 2 url's above), I knew it was wrong url, so I went to site and manually found proper url for the episode.

This will definitely not be possible with new url's, and I don't see any benefits of using new url's and also we would have to most likely manually clean "old" url's which for me is impossible for 7k movies.

So, I would definitely like to keep old url's and sorry for I wasn't thinking thoroughly in my previous post about this.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version