|
|
View previous topic :: View next topic |
Do you want this request? |
Yes - I would find that request useful. |
|
48% |
[ 13 ] |
No - I would not find that request useful. |
|
51% |
[ 14 ] |
|
Total Votes : 27 |
|
Author |
Message |
HiDefDog
Posts: 8
|
|
Back to top |
|
|
mrnoshot
Posts: 49
|
Posted: Tue Feb 19, 2008 3:10 am Post subject: |
|
|
It would be nice to have that option but I bet it will not be implemented. The tv shows just like movies are copyrighted(of course some would debate that they are not under 'Fair Use Rights'). Newzbin however can get away with it because they are not the actual host providing the shows. They are just letting users share .nzb(s) -- good idea though |
|
Back to top |
|
|
HiDefDog
Posts: 8
|
Posted: Tue Feb 19, 2008 2:16 pm Post subject: |
|
|
I'm not sure Fair Use or copyright would really be an issue.
MyEpisodes.com wouldn't be linking to the actual show, either. They wouldn't even be linking to a .nzb file. It would just be a link to a preformatted search on Newzbin.
Oh well, I'll keep my fingers crossed. |
|
Back to top |
|
|
martijnvanetten
Posts: 7 Location: the Netherlands
|
Posted: Sat Mar 01, 2008 6:16 pm Post subject: |
|
|
Maybe NZB-TV can help you out a little? It's been posted in this forum a while ago. *Click *
But I agree that such a link would be nice. Maybe with a setting you can turn on or off in the control panel? |
|
Back to top |
|
|
Sypher
Posts: 61 Location: The Netherlands
|
Posted: Thu Mar 20, 2008 6:56 pm Post subject: |
|
|
Using GreaseMonkey this can be done quite easily
(Greasemonkey= Client Side javascript addin for Firefox).
Works like a charm (not linking to Newzbin but a different source though) |
|
Back to top |
|
|
TheDream Moderator
Posts: 66 Location: Denmark
|
Posted: Mon Mar 31, 2008 1:44 am Post subject: |
|
|
GreaseMonkey is a good idea because you will never see myepisodes.com be linking to either torrents nor newzbin do to copyright violations. |
|
Back to top |
|
|
HiDefDog
Posts: 8
|
Posted: Tue Apr 01, 2008 1:08 am Post subject: |
|
|
Yeah, I like the Greasemonkey idea. Now I just need to figure out how to write a script that will do what I need.
I see other scripts that will send searches to other sites. I think I'll try reworking one of those. |
|
Back to top |
|
|
doughie
Posts: 2
|
Posted: Tue Apr 01, 2008 9:32 pm Post subject: |
|
|
you wouldn't even need grease monkey. you could bookmark some javascript. |
|
Back to top |
|
|
Cosmos
Posts: 1
|
Posted: Wed Apr 02, 2008 6:00 pm Post subject: |
|
|
Has anybody found a way to do this yet? |
|
Back to top |
|
|
aoeuhtns
Posts: 2
|
Posted: Thu Jun 05, 2008 10:02 pm Post subject: |
|
|
There are a couple of systems already out there to automate the downloading of TV episodes. One of them is PADS which has been around for a while and does a pretty good job.
I've just finished writing a competing version called RUTV that is in PHP instead of Python and will also automatically mark downloaded episodes as acquired. I just released it today, but it has been running great for me for the last month at least.[/url] |
|
Back to top |
|
|
felizk
Posts: 2
|
Posted: Tue Jun 10, 2008 10:39 am Post subject: |
|
|
Script, I made one
Even before I saw this post XD
It changes the link of the title in the myshow list. I like it.
Code: |
// ==UserScript==
// @name Newzbin Linkifier
// @namespace lizk
// @include http://myepisodes.com/views.php
// ==/UserScript==
var allLinks, thisLink, allEpisodes, thisEp;
allLinks = document.evaluate(
'//td[@class="showname"]/a[@href]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
allEpisodes = document.evaluate(
'//td[@class="longnumber"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < allLinks.snapshotLength; i++) {
thisLink = allLinks.snapshotItem(i);
thisEp = allEpisodes.snapshotItem(i);
thisLink.href = "http://v3.newzbin.com/search/query/?q="+thisLink.innerHTML + " " + trimNumber(thisEp.innerHTML)+"&area=-1&fpn=p&searchaction=Go&areadone=-1";
// do something with thisLink
}
function trimNumber(s) {
return s.replace(/^0+/, '');
}
|
|
|
Back to top |
|
|
martijnvanetten
Posts: 7 Location: the Netherlands
|
Posted: Mon Nov 17, 2008 10:33 pm Post subject: |
|
|
OMG
it frikkin' works!
Thanks mate! Saves me a lot of time downing al of my gazillion shows... |
|
Back to top |
|
|
HiDefDog
Posts: 8
|
Posted: Wed Nov 26, 2008 3:07 pm Post subject: |
|
|
Thanks for the script. It works pretty well
I made 2 minor adjustments to better meet my needs. Here's what I use;
Code: |
// ==UserScript==
// @name Newzbin Linkifier
// @namespace lizk
// @include http://myepisodes.com/views.php
// ==/UserScript==
//
// Version 1.0.1
//
// Changes from v1.0.0
// Changed URL to use https://www.newzbin.com instead of http://v3.newzbin.com
// Changed area=-1 to area=c.8 to only search the TV section of Newzbin
var allLinks, thisLink, allEpisodes, thisEp;
allLinks = document.evaluate(
'//td[@class="showname"]/a[@href]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
allEpisodes = document.evaluate(
'//td[@class="longnumber"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < allLinks.snapshotLength; i++) {
thisLink = allLinks.snapshotItem(i);
thisEp = allEpisodes.snapshotItem(i);
thisLink.href = "https://www.newzbin.com/search/query/?q="+thisLink.innerHTML + " " + trimNumber(thisEp.innerHTML)+"&area=c.8&fpn=p&searchaction=Go&areadone=-1";
// do something with thisLink
}
function trimNumber(s) {
return s.replace(/^0+/, '');
}
|
|
|
Back to top |
|
|
martijnvanetten
Posts: 7 Location: the Netherlands
|
Posted: Wed Nov 26, 2008 9:02 pm Post subject: |
|
|
Could you tell us what the difference is between the two? |
|
Back to top |
|
|
HiDefDog
Posts: 8
|
|
Back to top |
|
|
proglist
Posts: 1
|
Posted: Fri Nov 28, 2008 7:39 pm Post subject: |
|
|
HiDefDog wrote: | Thanks for the script. It works pretty well
I made 2 minor adjustments to better meet my needs. Here's what I use;
Code: |
// ==UserScript==
// @name Newzbin Linkifier
// @namespace lizk
// @include http://myepisodes.com/views.php
// ==/UserScript==
//
// Version 1.0.1
//
// Changes from v1.0.0
// Changed URL to use https://www.newzbin.com instead of http://v3.newzbin.com
// Changed area=-1 to area=c.8 to only search the TV section of Newzbin
var allLinks, thisLink, allEpisodes, thisEp;
allLinks = document.evaluate(
'//td[@class="showname"]/a[@href]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
allEpisodes = document.evaluate(
'//td[@class="longnumber"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < allLinks.snapshotLength; i++) {
thisLink = allLinks.snapshotItem(i);
thisEp = allEpisodes.snapshotItem(i);
thisLink.href = "https://www.newzbin.com/search/query/?q="+thisLink.innerHTML + " " + trimNumber(thisEp.innerHTML)+"&area=c.8&fpn=p&searchaction=Go&areadone=-1";
// do something with thisLink
}
function trimNumber(s) {
return s.replace(/^0+/, '');
}
|
|
any boy got this running using grease monkey for ie?
its got me stumped.
edit - the XPathResult.ORDERED_NODE_SNAPSHOT_TYPE command isn't supported by ie so it will never work, gonna have to have a go at writing my own. |
|
Back to top |
|
|
ibwolf Tester
Posts: 48
|
Posted: Thu Dec 18, 2008 11:18 am Post subject: |
|
|
This is awesome. I'm kicking myself for not having thought of this.
I did however find that it didn't quite match my needs to I took the liberty of augmenting it a bit and thought I'd share the results (read the top comments for changes).
Code: |
// ==UserScript==
// @name Newzbin Linkifier
// @namespace lizk
// @include http://myepisodes.com/views.php*
// ==/UserScript==
//
// Version 1.1.0
//
// Changes from v1.0.0
// Changed URL to use https://www.newzbin.com instead of http://v3.newzbin.com
// Changed area=-1 to area=c.8 to only search the TV section of Newzbin
//
// Changes from v1.0.1
// * Script now adds 'nzb' link to the end of each line instead of rewriting the
// shows link.
// * Now works with "Episodes by Show" view and "Episodes by Date".
// Need to append * to include url. I.e. http://myepisodes.com/views.php*
// * Clicking nzb link opens up a new window now
// * Attributes are added to the search to restrict it to english and remove
// certain garbage (edit searchAttributes to set your favorite limits)
// * nzb link faded for episodes that have not been aired
var allLinks, thisLink, allEpisodes, thisEp, allDates, thisDate;
var searchAttributes = "a:l~eng -(passworded) -(drm)";
allLinks = document.evaluate(
'//td[@class="showname"]/a[@href]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
if(allLinks.snapshotLength==0){
allLinks = document.evaluate(
'//td[@class="showname"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
}
allEpisodes = document.evaluate(
'//td[@class="longnumber"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
allDates = document.evaluate(
'//td[@class="date"]/a[@href]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
if(allDates.snapshotLength==0){
allDates = document.evaluate(
'//td[@class="date"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
}
for (var i = 0; i < allEpisodes.snapshotLength; i++) {
thisLink = allLinks.snapshotItem(i);
thisEp = allEpisodes.snapshotItem(i);
thisDate = allDates.snapshotItem(i).innerHTML;
var linkStyle = "";
if(hasNotAired(thisDate)){
linkStyle = "style='color: grey;'";
}
thisEp.parentNode.innerHTML += "<td class='longnumber'><a target='_blank' " + linkStyle + " href='https://www.newzbin.com/search/query/?q="+thisLink.innerHTML + " " + trimNumber(thisEp.innerHTML)+" " + searchAttributes + "&area=c.8&fpn=p&searchaction=Go&areadone=-1'>nzb</a></td>";
}
// Fix the save button
var saveButtons = document.evaluate(
'//input[@value="Save Status"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < saveButtons.snapshotLength; i++) {
var saveButton = saveButtons.snapshotItem(i);
saveButton.type="button";
saveButton.addEventListener("click",runSave,false);
}
function trimNumber(s) {
return s.replace(/^0+/, '');
}
// dateString format: dd-MMM-yyyy (e.g. 16-Dec-2008)
function hasNotAired(dateString){
var theDate = new Date();
year = dateString.substring(7,11);
day = dateString.substring(0,2);
month = dateString.substring(3,6);
switch(month) {
case "Jan": month = 0; break;
case "Feb": month = 1; break;
case "Mar": month = 2; break;
case "Apr": month = 3; break;
case "May": month = 4; break;
case "Jun": month = 5; break;
case "Jul": month = 6; break;
case "Aug": month = 7; break;
case "Sep": month = 8; break;
case "Okt": month = 9; break;
case "Nov": month = 10; break;
case "Dec": month = 11; break;
default: month = 1;
}
theDate.setFullYear(year,month,day);
var today = new Date();
return theDate>today;
}
function runSave(){
var theForm = document.evaluate(
'//form[@action="?type=save"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null).snapshotItem(0);
theForm.innerHTML="<input type='hidden' name='action' value='Save Status'>";
var theCheckBoxes = document.evaluate(
'//td[@class="status"]/input',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < theCheckBoxes.snapshotLength; i++) {
theForm.appendChild(theCheckBoxes.snapshotItem(i));
}
theForm.submit();
}
|
While I agree that the site shouldn't add links like this itself, it would help if elements had useful more useful IDs for example. It would also be a big help if the pages were legal XHTML. My revised script edits the DOM a bit and it was enough for the browser to lose track of what was in the form, requiring some more code to put everything right. Not a huge deal but ... |
|
Back to top |
|
|
HiDefDog
Posts: 8
|
Posted: Thu Dec 18, 2008 1:56 pm Post subject: |
|
|
Awesome! I'll give it a try. |
|
Back to top |
|
|
ibwolf Tester
Posts: 48
|
Posted: Thu Dec 18, 2008 3:45 pm Post subject: |
|
|
Ran into more corner case. Shows such as The Daily Show and The Tonight Show use dates instead of season and episode number on Newzbin so the search term doesn't work. Also ' in show (and now episode) names will cause the Javascript to fail. Fixed in this new version:
Code: |
// ==UserScript==
// @name Newzbin Linkifier
// @namespace lizk
// @include http://myepisodes.com/views.php*
// ==/UserScript==
//
// Version 1.1.1
//
// Changes from v1.0.0
// Changed URL to use https://www.newzbin.com instead of http://v3.newzbin.com
// Changed area=-1 to area=c.8 to only search the TV section of Newzbin
//
// Changes from v1.0.1
// * Script now adds 'nzb' link to the end of each line instead of rewriting the
// shows link.
// * Now works with "Episodes by Show" view and "Episodes by Date".
// Need to append * to include url. I.e. http://myepisodes.com/views.php*
// * Clicking nzb link opens up a new window now
// * Attributes are added to the search to restrict it to english and remove
// certain garbage (edit searchAttributes to set your favorite limits)
// * nzb link faded for episodes that have not been aired
//
// Changes from v1.1.0
// * Now works correctly with shows that Newzbin lists with date instead of
// season and episode number. Uses episode title also in query.
// * Now works with shows and episodes that have an ' in their name.
var allLinks, thisLink, allEpisodes, thisEp, allEpisodeNames, thisEpName, allDates, thisDate;
var searchAttributes = "a:l~eng -(passworded) -(drm)";
allLinks = document.evaluate(
'//td[@class="showname"]/a[@href]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
if(allLinks.snapshotLength==0){
allLinks = document.evaluate(
'//td[@class="showname"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
}
allEpisodes = document.evaluate(
'//td[@class="longnumber"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
allEpisodeNames = document.evaluate(
'//td[@class="epname"]/a[@href]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
allDates = document.evaluate(
'//td[@class="date"]/a[@href]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
if(allDates.snapshotLength==0){
allDates = document.evaluate(
'//td[@class="date"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
}
for (var i = 0; i < allEpisodes.snapshotLength; i++) {
thisLink = allLinks.snapshotItem(i);
thisEp = allEpisodes.snapshotItem(i);
thisEpName = cleanName(allEpisodeNames.snapshotItem(i).innerHTML);
thisDate = allDates.snapshotItem(i).innerHTML;
var linkStyle = "";
if(hasNotAired(thisDate)){
linkStyle = "style='color: grey;'";
}
thisEp.parentNode.innerHTML += "<td class='longnumber'><a target='_blank' " + linkStyle + " href='https://www.newzbin.com/search/query/?q=^\""+cleanName(thisLink.innerHTML) + "\" (\"" + trimNumber(thisEp.innerHTML)+"\" OR \"" + thisEpName + "\") " + searchAttributes + "&area=c.8&fpn=p&searchaction=Go&areadone=-1'>nzb</a></td>";
}
// Fix the save button
var saveButtons = document.evaluate(
'//input[@value="Save Status"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < saveButtons.snapshotLength; i++) {
var saveButton = saveButtons.snapshotItem(i);
saveButton.type="button";
saveButton.addEventListener("click",runSave,false);
}
function trimNumber(s) {
return s.replace(/^0+/, '');
}
// Encodes quotes and remove special characters that Newzbin search doesn't like
function cleanName(name){
name = name.replace(/'/gi,"'");
name = name.replace(":","");
return name;
}
// dateString format: dd-MMM-yyyy (e.g. 16-Dec-2008)
function hasNotAired(dateString){
var theDate = new Date();
year = dateString.substring(7,11);
day = dateString.substring(0,2);
month = dateString.substring(3,6);
switch(month) {
case "Jan": month = 0; break;
case "Feb": month = 1; break;
case "Mar": month = 2; break;
case "Apr": month = 3; break;
case "May": month = 4; break;
case "Jun": month = 5; break;
case "Jul": month = 6; break;
case "Aug": month = 7; break;
case "Sep": month = 8; break;
case "Okt": month = 9; break;
case "Nov": month = 10; break;
case "Dec": month = 11; break;
default: month = 1;
}
theDate.setFullYear(year,month,day);
var today = new Date();
return theDate>today;
}
function runSave(){
var theForm = document.evaluate(
'//form[@action="?type=save"]',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null).snapshotItem(0);
theForm.innerHTML="<input type='hidden' name='action' value='Save Status'>";
var theCheckBoxes = document.evaluate(
'//td[@class="status"]/input',
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < theCheckBoxes.snapshotLength; i++) {
theForm.appendChild(theCheckBoxes.snapshotItem(i));
}
theForm.submit();
}
|
Ok, that's it. I've got to get some actual work done |
|
Back to top |
|
|
HiDefDog
Posts: 8
|
Posted: Fri Dec 19, 2008 3:45 pm Post subject: |
|
|
Works great. Thank you! |
|
Back to top |
|
|
HiDefDog
Posts: 8
|
Posted: Sun Dec 21, 2008 6:07 pm Post subject: |
|
|
Hi,
I think I found a problem in function cleanName() Here is a modification that should make the script work better with episodes and titles that have a ' in them. Please, let me know if you see any problems with the below.
Code: |
function cleanName(name){
name = name.replace("'","%27")
name = name.replace(":","");
return name;
}
|
|
|
Back to top |
|
|
ibwolf Tester
Posts: 48
|
Posted: Mon Dec 22, 2008 1:24 am Post subject: |
|
|
The script was getting somewhat less than manageable so I decided to do a clean rewrite.
http://docs.google.com/Doc?id=dfwg5h84_2f3ggpgdj
This rewrite uses DOM methods rather than innerHTML to modify the page. Consequently the cleanName() function is no longer needed, nor are the dirty fixes for the "Save Status" button.
Overall this new script should be much easier to maintain and modify. |
|
Back to top |
|
|
ghoofy007
Posts: 1
|
Posted: Thu Feb 05, 2009 3:53 pm Post subject: |
|
|
I changed the script to search on ThePirateBay.
Most user may have rather bittorrent than a usenet account and as there is no working torrent search script anymore I rewrote the script.
I hope you don't mind that I just copied your script and changed a few things.
Here it is:
http://userscripts.org/scripts/show/41814 |
|
Back to top |
|
|
n1hilist
Posts: 1
|
Posted: Fri Feb 13, 2009 8:13 pm Post subject: |
|
|
ibwolf wrote: | The script was getting somewhat less than manageable so I decided to do a clean rewrite.
http://docs.google.com/Doc?id=dfwg5h84_2f3ggpgdj
This rewrite uses DOM methods rather than innerHTML to modify the page. Consequently the cleanName() function is no longer needed, nor are the dirty fixes for the "Save Status" button.
Overall this new script should be much easier to maintain and modify. |
Thanks for making this guys, I've been using pads to automate everything but sometimes it seems to miss shows, this is perfect for filling in the gaps!
I like to download HD only, so I made a small change:
I changed
Code: |
function createSimpleSearchURL(searchterm){
var url = "https://www.newzbin.com/search/query/?q=^" +
searchterm +
" " +
searchAttributes +
"&area=c.8&fpn=p&searchaction=Go&areadone=-1";
return url;
}
|
to
Code: |
function createSimpleSearchURL(searchterm){
var url = "https://www.newzbin.com/search/query/?q=^" +
searchterm +
" " +
searchAttributes +
"&area=c.8&fpn=p&searchaction=Go&areadone=-1&u_v3_retention=10368000&ps_rb_video_format=131072&sort=ps_edit_date&order=desc";
return url;
}
|
It sets my format to x264 only and retention to 120 days so i dont see anything older than that. If you want a different format, go to newzbin, customize your search and launch it, then look at the URL and copy the information and add it to your script. |
|
Back to top |
|
|
lolo0202
Posts: 6
|
Posted: Sat Oct 17, 2009 10:10 am Post subject: |
|
|
just a simple question: does anyone can make it searching for edklinks (because in France we mostly use emule rather than torrent) ? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
Main design by MW. Refitted to board by Hostile.
|