Author Topic: Scripting Q: .Torrent not on search page.  (Read 10225 times)

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Scripting Q: .Torrent not on search page.
« on: April 28, 2008, 03:24:52 am »
I'm trying to work out one of my first scripts, but hit a snag.

The search results page doesn't include a direct link to the .torrent file, only the details page.
Is there any way to script around that or an appropriate way to handle it?

I don't think I can construct the link from the information given since the .torrent links look like this:
Code: [Select]
http://TorrentSiteImWorkingOn.com/download.php/130279/1209402160/9819e1b18afcb8e712dbb33d10ac2fcf/454300/TorrentName.torrent
Only the "454300/TorrentName.torrent" information can be gotten from the search page, I have no idea what the rest is.

Tips?  Ideas?

Btw, do you need special permission to upload completed scripts?  I've got 2 other fixed ones I'd like to share.

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: Scripting Q: .Torrent not on search page.
« Reply #1 on: April 28, 2008, 03:48:20 am »
Found the add attachment hidden under 'additional options'. 

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: Scripting Q: .Torrent not on search page.
« Reply #2 on: April 28, 2008, 04:00:47 am »
Hi CuF,

I took a look at that site and unfortunately there is no way for Bit Che to extract (or generate) this 2nd hash/download link for the time being. In a future version, I will be implementing 2nd code section to handle such cases as this.

For the time being, I have updated the script to atleast search the site and return the results as best as it can. For the torrent, you will have to manually "Open Page..." each time.


And feel free to add the fixed scripts! :) No special permission is needed. We will go over them and then I will update the script pack to include your fixed scripts. You can post them: http://convivea.com/forums/index.php?action=post;topic=1039.0;num_replies=14


Thanks! and congrats on learning to work with the script engine!

-chip
« Last Edit: April 28, 2008, 04:02:18 am by chip! »
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline CuF

  • Sr. Member
  • ****
  • Posts: 331
  • Karma: +40/-0
    • View Profile
Re: Scripting Q: .Torrent not on search page.
« Reply #3 on: April 28, 2008, 06:47:37 am »
You got ahead of me.  I was going to eat lunch and then do the same thing to BoxTorrents.
Thank you.  MySpleen and HDbits have been posted on the thread you linked.