This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: | |
# https://stackoverflow.com/questions/6051877/loading-magnet-link-using-rasterbar-libtorrent-in-python | |
# | |
# ATTENTION: This is only a example of to use a python bind of torrent library in Python for educational purposes. | |
# I am not responsible for your download of illegal content or without permission. | |
# Please respect the laws license permits of your country. | |
import libtorrent as lt | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// generates a Markdown list of all the show links on a 5by5 episode page, | |
// autoselects the result for copying and provides next/prev navigation | |
// only designed for 5by5, which already has jQuery loaded and matches | |
// the regex. Customize as needed for other uses. | |
// Brett Terpstra 2013 | |
var output = "\n\n### Episode "+window.location.href.replace(/.*\/(\d)/,"$1")+"\n\n"; | |
output += "[Show Link]("+window.location.href+")\n\n"; | |
$('#episode_links').find('a').each(function(){ output += "* ["+$(this).text()+"]("+$(this).attr('href')+")\n"; }); | |
// create next/prev links (no boundry checking) |