alexcoe / remote-torrent-adder

Automatically exported from code.google.com/p/remote-torrent-adder
0 stars 2 forks source link

Failure of Link Catching for the Humble Store #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of Chrome are you using? On what operating system?
Using Chrome v37.0.2062.124 on Win7 x64

Connecting to ruTorrent v3.5, not on SSL.

I just can't make the link catcher pick up the links on the Humble Store site 
(https://www.humblebundle.com/home), it just downloads the torrent normally. 

If I right-click on the link, I can "add to Remote WebUI" and it works fine, 
but no matter what filter I use to try to catch the link (and I tried some 
ridiculously overinclusive test strings).

I'm not an expert in regular expressions by any means, but I seem to have been 
able to make this work for more other sites.

Here is (I think) an example of the element in question:

<div class="js-platform downloads mac show">
    <div class="download-buttons">
    <div class="download show" '="" data-md5="9f32c7e04860f5e0f0eeb661ee2230db">
  <div class="flexbtn active noicon">
    <div class="right"></div>
    <span class="label">Download</span>
      <a class="a" href="https://hb1.ssl.hwcdn.net/torrents/BrokenAge_osx_1404412094.zip.torrent?gamekey=aBc&amp;ttl=123&amp;t=a1s2" data-web="https://hb1.ssl.hwcdn.net/BrokenAge_osx_1404412094.zip?gamekey=aBc&amp;ttl=123&amp;t=a1s2" data-bt="https://hb1.ssl.hwcdn.net/torrents/BrokenAge_osx_1404412094.zip.torrent?gamekey=aBc&amp;ttl=123&amp;t=a1s2">
        Download
      </a>
  </div>
  <div class="dldetails">
    <div class="dlsize">
      <span class="mbs">1001.1 MB</span>
      <a href="#9f32c7e04860f5e0f0eeb661ee2230db" class="dlmd5">md5</a><br class="datebr">
        <a href="#" title="New version posted: 2014-07-04 at 04:31" class="dldate" data-shortdate="2014-07-04">2014-07-04</a>
    </div>
  </div>
</div></div>
  </div>

Original issue reported on code.google.com by danielws...@gmail.com on 10 Oct 2014 at 2:16

GoogleCodeExporter commented 9 years ago
these guys are funny:

<a class="a" 
href="https://hb1.ssl.hwcdn.net/torrents/magicka_ost_mp3_1386017784.zip.torrent?
gamekey=CwrBWBthTktWvhbP&ttl=1413030431&t=2b7b0b85725e5eee38670119a3458a63" 
data-web="https://hb1.ssl.hwcdn.net/magicka_ost_mp3_1386017784.zip?gamekey=CwrBW
BthTktWvhbP&ttl=1413030431&t=b595436d5834258417223963c72b5deb" 
data-bt="https://hb1.ssl.hwcdn.net/torrents/magicka_ost_mp3_1386017784.zip.torre
nt?gamekey=CwrBWBthTktWvhbP&ttl=1413030431&t=2b7b0b85725e5eee38670119a3458a63">
        MP3
      </a>

so what they're doing in essence is have two data- attributes (data-web, 
data-bt) in their a tag and then swap around the value to the href-attribute 
depending on which download method you select via javascript.
unfortunately due to the way that click events are registered, RTA can't catch 
links that are altered/created with javascript right now.

sidenote: there was a guy in issue 53 a while back who wanted to make an 
extension that reinitializes the link catching after the site has loaded and i 
added some code to that effect, but he never got back to me. so no solution for 
now.

Original comment by jul...@gmail.com on 10 Oct 2014 at 12:56

GoogleCodeExporter commented 9 years ago
Ok, bummer. Cheers for the explanation and information!

Original comment by danielws...@gmail.com on 13 Oct 2014 at 2:00