Hola!
¿Existe algún servicio, función, script, etc... que te permita obtener información de un fichero .torrent con PHP?
Me refiero a info como: tamaño, nº archivos, seeders, leechers, etc...
Saludos.
| ||||
Respuesta: Obtener información de torrent con PHP UP!! ¿Nada? Me cuesta mucho encontrar información al respecto... He encontrado la siguiente clase (https://github.com/adriengibrat/torrent-rw) que al menos algo hace :) Puedo obtener parte de la información que quiero del .torrent, como es el "nombre", "hash" y el "tamaño" pero aun no se como sacar los "seeders" y "leechers" Con un torrent que he probado, esta es la respuesta: Cita: private: no annonce: Notice: Array to string conversion in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\AMOVIE\torrent-rw-master\Torrent.php on line 27 Array name: La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano] comment: piece_length: 524288 size: 441.87 Mo hash info: 791c402600a155f9a9695ab4e234b9387368827a stats: array(5) { ["http://www.spanishtracker.com:2710/scrape"]=> array(3) { ["complete"]=> int(122) ["downloaded"]=> int(9390) ["incomplete"]=> int(46) } ["http://tracker.openbittorrent.com/scrape"]=> string(29) "Tracker request timeout (30s)" ["http://tracker.publicbt.com/scrape"]=> string(29) "Tracker request timeout (30s)" ["http://tracker.openbittorrent.com:80/"]=> string(29) "Tracker request timeout (30s)" ["http://tracker.publicbt.com:80/"]=> string(29) "Tracker request timeout (30s)" } content: array(3) { ["La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano]\Importante leer !!!!!.txt"]=> int(301) ["La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano]\Lcup213 [www.newpct1.com].avi"]=> int(462457184) ["La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano]\www.DIVXATOPE.com.url"]=> int(877518) } source: d8:announce43:http://www.spanishtracker.com:2710/a...80ee10:created by13:uTorrent/177013:creation datei1412767466e8:encoding5:UTF-84:infod5:filesld6:lengthi301e4:pathl25:Importante leer !!!!!.txteed6:lengthi462457184e4:pathl29:Lcup213 [http://www.newpct1.com].avieed6:leng...eee4:name60:La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano]12:piece lengthi524288e6:pieces17680:w« *F*7púï^ñ/ø\ÑkB<·:´ ïwEgSÅÑ1xUh‘ßµc×»VaOáÆ”ê¦dë“X¼µÜkœËÈvê¹ÿñ̳ fx1@ öE{«Ìjy8$çÓ"·ÙZYh0#3U‘s)rÏ6-ðJùqPʳ@/ê–)GkK$ñ¶¢ Í2ÅêkK„A#î¢w]¥+œ÷ÌŠÕ3°²IήŒÜ¼7bÍØ·Ï·Ê‘}oÕ6Òæ[0ô®ùö+œ=™~<¬‘ öQ†ÿŽ<Èôe`žr"†4^»‹Š q §ªº´|®?ð%Iò1@Jmâj/®Ï\å‹©<§‡æèÉÅÃ7«ß-^÷–«µg%8×ð[Ô#Né•+§ k—_ýÄ›ClùÙ÷wbR¨Ç½9 /*²bï?g››·7hO™ZI>ƒ¬Þ6Ÿ´‡TtÚVrõŽ7ØØJf¾HWEÍÍ·,ß ÈTN®ÿ5F¸·’™µßë¨ÿÓ€³FºäÑŒ»„èÒ^E“Ìá>uPDá*8&ìèˆõä~ NÈÎ^Døè Kw^Ÿ2Œ«XZÍHáE/\CrÆ„XÉ´e/3WùY€‡°ÒHÕs ‰”ë§Ws!!µÏÕ'’aLu0…΢Rö°TlÓÂïÓ1¯Ž>¢øÃÒQ–ñ?‰ª „ü…;F?‘o¤›¶úuKÙiûÑZêLÌq.@~ÆÐqûNòñ_ ¸h¯’K*íãKø=PáS‰.À1N‡âëtª8ÑÉe»Î©ÈÂ1gõÖü$ð9 /õ{´ý€o_ w–gxŽÏKƒj™ƒ|n_±B‰9˜ƒVnÜ5EtDBàº.T^(3“Áµ.ï–¼ 'eì%ªß(L}õ!½ipˆMºcðhz¿Ãƒ±µMáNUþØóJˆT«;ƒ•Ú) ä#"3=¯)»AwÀ®a¬RóÉQòê6?|ØuÂý' ,ÛôÞí² /þùé©Z8ÌÀ–¦ŽtŠÏNw1K7Ò=2ž‘²Ù?]ã¤&&GíØ[I0:½ª¬qÒûÄ_½ßxõá%§ÌŒº›ÄÖY{åaˆÃã(·I2y.GµµÐX ¯ÀäDÛì%œ>¯}Ju¡E¬ï¥á&<ÈÆã)SGå"›2ñR~rŠ´ÁŠ<‡þ ²{k¨ÆkïwÁ·J+&ÔÕ ÎK¿+L@9f™™ Z÷B¿ ve#I=T~}|ß$†fòÞyŠàôŸÕ>Àfø©ešš šI‹… (/œ)‚R¤_"Pßt&f‡zÈQÓSq)àžŸÅ5ý@Œø0ÒZ|JŸhz‚úü2ÊžyH õå#0›•wêéö4é ë¹€ŒS\ÔIb“ÊŒVž@À×yQX¢„ »œ+ËdÁgKîÚ,éqÑ¢OÒ·8Ìh6 çW=–¯èêÜ2péq_®yÞ/É=°@ƒ€’1(~ó…ÎÓdJNd‚ÇO×·…–"‹Æºs¶º™D§ýHxí¢ÎèÜ®.. .(recorto: de aqui hasta el final todo igual)....
__________________ Follow me on twitter @franbedia |
Etiquetas: |