Accueil > > > TORRENT VIEWER
TORRENT VIEWER
Information sur la source
Description
Script by Dark-Neko
Nom: Torrent Viewer
Version: 2.0
Description: Affiche les torrents actifs dans BitTorrent et Utorrent
/!\ installation de WebUI obligatoire /!\
Tester avec BitTorrent 6.3 (Build 16973)
Utilisation: Modifier les variables dans l'alias torrent.load puis taper /torrent.load pour charger la configuration. Taper /torrent pour utiliser
le script. vous pouvez aussi l'utiliser aussi avec un timer.
Information:
Tester sur vista, BitTorrent 6.3 (Build 16973).
Pour installer WebUI, télécharger http://www.utorrent.com/webui/webui.zip
puis déplacer le fichier webui.zip dans C:\Users\<user>\AppData\Roaming\BitTorrent pour BitTorrent ou C:\Users\<utorrent>\AppData\Roaming\Utorrent pour utorrent.
Ouvrer BitTorrent ou Utorrent, aller dans Options > Preferences > Web Ui, cocher "enable web ui", modifier Username et Password si vous le voulez.
Et cocher "Alternative listening port".
------------
Version 2.0
Listage des torrents:
/torrent.list
Action sur les torrents:
/torrent.action [start/stop/pause/unpause/forcestart/recheck/remov e/removedata] [hash]
/torrent.action [dl/up] [<chiffre en KB surtout pas de /s apres le chiffre>] [hash]
Source
- ###################################
- ## Script by Dark-Neko ##
- ## Nom: Torrent Viewer ##
- ## Version: 2.0 ##
- ## Description: ##
- ## Affiche les torrents actifs ##
- ## dans BitTorrent et Utorrent ##
- ## /!\ Installation de WebUI ##
- ## obligatoire /!\ ##
- ## Tester avec BiTorrent 6.3 ##
- ## (Build 16973) ##
- ## Utilisation: ##
- ## Modifier les variables dans ##
- ## l'alias torrent.load puis ##
- ## taper /torrent.load pour ##
- ## charger la configuration ##
- ## Taper /torrent pour utiliser ##
- ## vous pouvez aussi l'utiliser ##
- ## aussi avec un timer ##
- ###################################
- alias torrent.load {
- ;### Configuration
-
- ;#Adresse IP (Ne pas toucher si BitTorrent sur votre ordinateur)
- set %torrent.adresse.ip localhost
-
- ;#Port du WebUI (8080 par défaut)
- set %torrent.adresse.port 8080
-
- ;#WebUI Pseudo
- set %torrent.webui.pseudo admin
-
- ;#WebUI Mot de passe
- set %torrent.webui.mdp 101094
-
- ;#Chan (ne pas modifier sauf si vous voulez utiliser un timer)
- set %torrent.chan $chan
-
- ;### Echo
- echo Chargement Ok
- }
-
- alias torrent {
- ;#Chargement
- sockclose torrent
- sockopen torrent %torrent.adresse.ip %torrent.adresse.port
- }
- on *:sockopen:torrent:{
- sockwrite -n torrent GET /gui/?list=1 HTTP/1.1
- sockwrite -n $sockname Host: %torrent.adresse.ip
- sockwrite -nt $sockname Authorization: Basic $encode(%torrent.webui.pseudo $+ : $+ %torrent.webui.mdp,m)
- sockwrite -nt $sockname $crlf
- }
- on *:sockread:torrent:{
- var %torrent.x
- sockread %torrent.x
- if ($gettok(%torrent.x,2,44) == 201) {
- set %torrent.pr $calc($calc($gettok(%torrent.x,6,44) / $gettok(%torrent.x,4,44)) * 100)
- if (%torrent.pr >= 0) { set %torrent.statbar 15|||||||||| }
- if (%torrent.pr >= 20) { set %torrent.statbar 9||15|||||||| }
- if (%torrent.pr >= 30) { set %torrent.statbar 9|||15||||||| }
- if (%torrent.pr >= 40) { set %torrent.statbar 9||||15|||||| }
- if (%torrent.pr >= 50) { set %torrent.statbar 9|||||15||||| }
- if (%torrent.pr >= 60) { set %torrent.statbar 9||||||15|||| }
- if (%torrent.pr >= 70) { set %torrent.statbar 9|||||||15||| }
- if (%torrent.pr >= 80) { set %torrent.statbar 9||||||||15|| }
- if (%torrent.pr >= 90) { set %torrent.statbar 9|||||||||15| }
- if (%torrent.pr >= 100) { set %torrent.statbar 9|||||||||| }
- msg %torrent.chan $remove($gettok(%torrent.x,3,44),") 15-7 $round($calc($calc($gettok(%torrent.x,6,44) / $gettok(%torrent.x,4,44)) * 100),1) $+ % [ %torrent.statbar ] 6 $round($calc($calc($gettok(%torrent.x,4,44) - $gettok(%torrent.x,6,44)) / 1048576),2) MO restant 15[[2 $round($calc($gettok(%torrent.x,6,44) / 1048576),2) 14/12 $round($calc($gettok(%torrent.x,4,44) / 1048576),2) 15]] 5DL: $round($calc($gettok(%torrent.x,10,44) / 1024),1) KB/s 3UP: $round($calc($gettok(%torrent.x,9,44) / 1024),1) KB/s 15|| Encore:6 $duration($calc($calc($calc($gettok(%torrent.x,4,44) - $gettok(%torrent.x,6,44)) / 1024) / $calc($gettok(%torrent.x,10,44) / 1024)),3)
- }
- }
- # Torrent.list
- alias torrent.list {
- window @torrent
- ;#Chargement
- sockclose torrent.list
- sockopen torrent.list %torrent.adresse.ip %torrent.adresse.port
- }
- on *:sockopen:torrent.list:{
- sockwrite -n torrent.list GET /gui/?list=1 HTTP/1.1
- sockwrite -n $sockname Host: %torrent.adresse.ip
- sockwrite -nt $sockname Authorization: Basic $encode(%torrent.webui.pseudo $+ : $+ %torrent.webui.mdp,m)
- sockwrite -nt $sockname $crlf
- }
- on *:sockread:torrent.list:{
- var %torrent.list.x
- sockread %torrent.list.x
- if ($gettok(%torrent.list.x,2,44) == 201) {
- aline @torrent 12#################################
- aline @torrent Nom: $remove($gettok(%torrent.list.x,3,44),")
- aline @torrent Etat: Actif / Download
- aline @torrent Hash: $gettok(%torrent.list.x,2,34)
- }
- if ($gettok(%torrent.list.x,2,44) == 200) {
- aline @torrent 4#################################
- aline @torrent Nom: $remove($gettok(%torrent.list.x,3,44),")
- aline @torrent Etat: Fini / Seed
- aline @torrent Hash: $gettok(%torrent.list.x,2,34)
- }
- if ($gettok(%torrent.list.x,6,44) == $gettok(%torrent.list.x,4,44) && $gettok(%torrent.list.x,2,34) != torrentc && $remove($gettok(%torrent.list.x,3,44),") != $null) {
- aline @torrent 14#################################
- aline @torrent Nom: $remove($gettok(%torrent.list.x,3,44),")
- aline @torrent Etat: Fini / Stop
- aline @torrent Hash: $gettok(%torrent.list.x,2,34)
- }
- if ($gettok(%torrent.list.x,6,44) != $gettok(%torrent.list.x,4,44) && $gettok(%torrent.list.x,2,44) != 201) {
- aline @torrent 3#################################
- aline @torrent Nom: $remove($gettok(%torrent.list.x,3,44),")
- aline @torrent Etat: Pause
- aline @torrent Hash: $gettok(%torrent.list.x,2,34)
- }
- }
- # Torrent.action
- alias Torrent.action {
-
- if ($1 != set) {
- if ($2 != $null) {
- set %torrent.action $1
- ;#Chargement
- set %torrent.action.hash $2
- sockclose torrent.action
- sockopen torrent.action %torrent.adresse.ip %torrent.adresse.port
- }
- else {
- echo Erreur ! Entrer le hash du torrent
- }
- }
- if ($1 == set && $2 == dl) {
- set %torrent.action.hash $4 $+ &s=dlrate&v= $+ $calc($3 * 1024)
- set %torrent.action setprops
- sockclose torrent.action
- sockopen torrent.action %torrent.adresse.ip %torrent.adresse.port
- }
- if ($1 == set && $2 == up) {
- set %torrent.action.hash $4 $+ &s=ulrate&v= $+ $calc($3 * 1024)
- set %torrent.action setprops
- sockclose torrent.action
- sockopen torrent.action %torrent.adresse.ip %torrent.adresse.port
- }
- }
- on *:sockopen:torrent.action:{
- sockwrite -n torrent.action GET /gui/?action= $+ %torrent.action $+ &hash= $+ %torrent.action.hash HTTP/1.1
- sockwrite -n $sockname Host: %torrent.adresse.ip
- sockwrite -nt $sockname Authorization: Basic $encode(%torrent.webui.pseudo $+ : $+ %torrent.webui.mdp,m)
- sockwrite -nt $sockname $crlf
- }
###################################
## Script by Dark-Neko ##
## Nom: Torrent Viewer ##
## Version: 2.0 ##
## Description: ##
## Affiche les torrents actifs ##
## dans BitTorrent et Utorrent ##
## /!\ Installation de WebUI ##
## obligatoire /!\ ##
## Tester avec BiTorrent 6.3 ##
## (Build 16973) ##
## Utilisation: ##
## Modifier les variables dans ##
## l'alias torrent.load puis ##
## taper /torrent.load pour ##
## charger la configuration ##
## Taper /torrent pour utiliser ##
## vous pouvez aussi l'utiliser ##
## aussi avec un timer ##
###################################
alias torrent.load {
;### Configuration
;#Adresse IP (Ne pas toucher si BitTorrent sur votre ordinateur)
set %torrent.adresse.ip localhost
;#Port du WebUI (8080 par défaut)
set %torrent.adresse.port 8080
;#WebUI Pseudo
set %torrent.webui.pseudo admin
;#WebUI Mot de passe
set %torrent.webui.mdp 101094
;#Chan (ne pas modifier sauf si vous voulez utiliser un timer)
set %torrent.chan $chan
;### Echo
echo Chargement Ok
}
alias torrent {
;#Chargement
sockclose torrent
sockopen torrent %torrent.adresse.ip %torrent.adresse.port
}
on *:sockopen:torrent:{
sockwrite -n torrent GET /gui/?list=1 HTTP/1.1
sockwrite -n $sockname Host: %torrent.adresse.ip
sockwrite -nt $sockname Authorization: Basic $encode(%torrent.webui.pseudo $+ : $+ %torrent.webui.mdp,m)
sockwrite -nt $sockname $crlf
}
on *:sockread:torrent:{
var %torrent.x
sockread %torrent.x
if ($gettok(%torrent.x,2,44) == 201) {
set %torrent.pr $calc($calc($gettok(%torrent.x,6,44) / $gettok(%torrent.x,4,44)) * 100)
if (%torrent.pr >= 0) { set %torrent.statbar 15|||||||||| }
if (%torrent.pr >= 20) { set %torrent.statbar 9||15|||||||| }
if (%torrent.pr >= 30) { set %torrent.statbar 9|||15||||||| }
if (%torrent.pr >= 40) { set %torrent.statbar 9||||15|||||| }
if (%torrent.pr >= 50) { set %torrent.statbar 9|||||15||||| }
if (%torrent.pr >= 60) { set %torrent.statbar 9||||||15|||| }
if (%torrent.pr >= 70) { set %torrent.statbar 9|||||||15||| }
if (%torrent.pr >= 80) { set %torrent.statbar 9||||||||15|| }
if (%torrent.pr >= 90) { set %torrent.statbar 9|||||||||15| }
if (%torrent.pr >= 100) { set %torrent.statbar 9|||||||||| }
msg %torrent.chan $remove($gettok(%torrent.x,3,44),") 15-7 $round($calc($calc($gettok(%torrent.x,6,44) / $gettok(%torrent.x,4,44)) * 100),1) $+ % [ %torrent.statbar ] 6 $round($calc($calc($gettok(%torrent.x,4,44) - $gettok(%torrent.x,6,44)) / 1048576),2) MO restant 15[[2 $round($calc($gettok(%torrent.x,6,44) / 1048576),2) 14/12 $round($calc($gettok(%torrent.x,4,44) / 1048576),2) 15]] 5DL: $round($calc($gettok(%torrent.x,10,44) / 1024),1) KB/s 3UP: $round($calc($gettok(%torrent.x,9,44) / 1024),1) KB/s 15|| Encore:6 $duration($calc($calc($calc($gettok(%torrent.x,4,44) - $gettok(%torrent.x,6,44)) / 1024) / $calc($gettok(%torrent.x,10,44) / 1024)),3)
}
}
# Torrent.list
alias torrent.list {
window @torrent
;#Chargement
sockclose torrent.list
sockopen torrent.list %torrent.adresse.ip %torrent.adresse.port
}
on *:sockopen:torrent.list:{
sockwrite -n torrent.list GET /gui/?list=1 HTTP/1.1
sockwrite -n $sockname Host: %torrent.adresse.ip
sockwrite -nt $sockname Authorization: Basic $encode(%torrent.webui.pseudo $+ : $+ %torrent.webui.mdp,m)
sockwrite -nt $sockname $crlf
}
on *:sockread:torrent.list:{
var %torrent.list.x
sockread %torrent.list.x
if ($gettok(%torrent.list.x,2,44) == 201) {
aline @torrent 12#################################
aline @torrent Nom: $remove($gettok(%torrent.list.x,3,44),")
aline @torrent Etat: Actif / Download
aline @torrent Hash: $gettok(%torrent.list.x,2,34)
}
if ($gettok(%torrent.list.x,2,44) == 200) {
aline @torrent 4#################################
aline @torrent Nom: $remove($gettok(%torrent.list.x,3,44),")
aline @torrent Etat: Fini / Seed
aline @torrent Hash: $gettok(%torrent.list.x,2,34)
}
if ($gettok(%torrent.list.x,6,44) == $gettok(%torrent.list.x,4,44) && $gettok(%torrent.list.x,2,34) != torrentc && $remove($gettok(%torrent.list.x,3,44),") != $null) {
aline @torrent 14#################################
aline @torrent Nom: $remove($gettok(%torrent.list.x,3,44),")
aline @torrent Etat: Fini / Stop
aline @torrent Hash: $gettok(%torrent.list.x,2,34)
}
if ($gettok(%torrent.list.x,6,44) != $gettok(%torrent.list.x,4,44) && $gettok(%torrent.list.x,2,44) != 201) {
aline @torrent 3#################################
aline @torrent Nom: $remove($gettok(%torrent.list.x,3,44),")
aline @torrent Etat: Pause
aline @torrent Hash: $gettok(%torrent.list.x,2,34)
}
}
# Torrent.action
alias Torrent.action {
if ($1 != set) {
if ($2 != $null) {
set %torrent.action $1
;#Chargement
set %torrent.action.hash $2
sockclose torrent.action
sockopen torrent.action %torrent.adresse.ip %torrent.adresse.port
}
else {
echo Erreur ! Entrer le hash du torrent
}
}
if ($1 == set && $2 == dl) {
set %torrent.action.hash $4 $+ &s=dlrate&v= $+ $calc($3 * 1024)
set %torrent.action setprops
sockclose torrent.action
sockopen torrent.action %torrent.adresse.ip %torrent.adresse.port
}
if ($1 == set && $2 == up) {
set %torrent.action.hash $4 $+ &s=ulrate&v= $+ $calc($3 * 1024)
set %torrent.action setprops
sockclose torrent.action
sockopen torrent.action %torrent.adresse.ip %torrent.adresse.port
}
}
on *:sockopen:torrent.action:{
sockwrite -n torrent.action GET /gui/?action= $+ %torrent.action $+ &hash= $+ %torrent.action.hash HTTP/1.1
sockwrite -n $sockname Host: %torrent.adresse.ip
sockwrite -nt $sockname Authorization: Basic $encode(%torrent.webui.pseudo $+ : $+ %torrent.webui.mdp,m)
sockwrite -nt $sockname $crlf
}
Historique
- 15 mars 2010 05:00:27 :
- Passage version 1.3
- 15 mars 2010 05:06:35 :
- Passe à la version 1.4
- 16 mars 2010 12:23:12 :
- Ajout du temps restant avant la fin du DL.
Plus de slash devant les sets.
Ajout de var %torrent.x dans le sockread %torrent.x
Ajout d'un screen
Passage à la version 1.6.2
- 16 mars 2010 13:58:53 :
- Ajout de la possibilité d'arrêter, de démarrer, de forcer le démarrage du torrent, de mettre en pause, de unpause, de recheck, de supprimer le torrent, de supprimer les données et le torrent !
Ajout du listage des torrents dans une fenêtre.
Passage à la version 2.0
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Comment connecter un Socket ( sock ) à travers un proxy ? [ par biggoude ]
JE souhaite connecter un Socket sur un server IRC en le passant par un Proxy, comment faire cela ?Merci
Plus aucun socket ne répond... [ par Kolibot ]
Aucun socket ne répond depuis qqs jours... quelqu'un aurait'il une idée...By Koli
dcc send en socket [ par abdoulax ]
yo j'aurai besoin que qlq1 m'explik ac précsion le protocole du dcc send . ou sinon il me faudrai un exemple d'addon ki reproduirai le dcc send en soc
socket tokens avec gametiger.net [ par pcgpegase ]
bjour / bsoir tout les gens ! :)Bon alors étant un newbie du scripting irc et n'ayant pas trouvé de réponses à mon problème je demande votre aide :>
socket ! [ par Le_Corse ]
Salut,Quelqun connaitrais pas un bon tuto pour les sockets Svp ?merci ^^» Le_Corse
svp aidez moi pour socket news [ par nocomment ]
Bonjour je cherche désésperement une remote sur plein de site qui serai capable de dire les news sur un canal en tapant par exemple !news sur le gener
socket-pingpong [ par samsungman ]
bijour je voudré savoir koment ne pas se faire deconecté a chaque foi kon ce connect a un server ?
socket [ par KiNdErMaXi ]
bonjour,j'aurai voulus savoir comment connecter un socket dans une fenetre (un clone) et pouvoir lui faire faire des actions ( msg, etc ... )j'ai lus
AntiSpam [ par chez_moe ]
Salut les boys , J'ai un leger probleme de spambot sur Undernet pis le seul anti-spam génial que j,ai trouver c'est celui de JHD "socket anti spa
Questions sur les sockets et autres [ par zzzzzz ]
Salut :) J'ai quelques questions en vracs sur les sockets : Peu on déterminer le nom d'un socket ouvert sachant que son pseudo est aléatoir
|
Derniers Blogs
SESSION SILVERLIGHT 5 3D : SLIDES ET DEMOSSESSION SILVERLIGHT 5 3D : SLIDES ET DEMOS par Groc
Durant les techdays, j'ai eu le plaisir d'animer une session sur Silverlight 5 et la 3D avec Simon Ferquel. Comme promis, voici nos slides et mes démos (celles avec le viper BSG) ici et là. Pour mémoire, les démos utilisent toutes le viper BSG...
Cliquez pour lire la suite de l'article par Groc [TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES par gpommier
Suite à la session que j'ai présenté sur WebMatrix 2, vous pouvez trouver les slides ici, ainsi que les démos en packages nuget : démos1 et démos2 J'en profite pour remercier chaleureusement tous ceux qui sont venus très nombreux à cette sess...
Cliquez pour lire la suite de l'article par gpommier [SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE !MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE ! par Vko
Hier durant une session dédiée aux Techdays 2012, j'ai eu le plaisir d'annoncer la sortie de la Béta 2 de Mishra Reader. C'est quoi ? Pour les utilisateurs, c'est une vraie expérience de lecture de flux RSS sur Windows. Rien à voir avec les produit...
Cliquez pour lire la suite de l'article par Vko
Forum
RE : AIDERE : AIDE par Nico26000
Cliquez pour lire la suite par Nico26000 RE : AIDERE : AIDE par WorldDMT
Cliquez pour lire la suite par WorldDMT AIDEAIDE par Nico26000
Cliquez pour lire la suite par Nico26000
Logiciels
Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning
|