It is currently October 19th, 2019, 10:01 am



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Replacing dead links.
PostPosted: September 21st, 2019, 12:16 pm 

Joined: September 18th, 2019, 9:54 pm
Posts: 17
Hi,
im starting this topic so that we all could share knowledge about replacing dead links in batches.
This should be meant for multi episode uploads, like tv shows or documentaries.

The scenario :
Lets say that you get 50 dead links each from different show.

Code:
http://fastshare.cz/12279831/zazracna-planeta-ii-1-ostrovy-.ts
http://fastshare.cz/12308695/velke-stroje-zblizka-ii-1-.ts
http://fastshare.cz/12309913/revoluce-stroju-ii-2-.ts
http://fastshare.cz/12276926/novy-zeland-z-vysky.ts
http://fastshare.cz/12309525/smrtici-dinosauri-1-.ts


So i was thinking in case you have all files backed up in 1 folder and TM can export dead links to txt file, could you somehow compare those file names from txt so that some file manager could SELECT those backed files for copy/reupload ?

Off course it would have to compare only partial matches without domain and any characters added by file hosting

I welcome any suggestions to make this process more efficient/easy


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacing dead links.
PostPosted: September 21st, 2019, 12:48 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 9856
Location: Earth
I don't think Windows filemanager can do that.

You will need to select the files manually (you can use Windows search to quickly find needed file).

After re-uploading, you can put all new links in one .txt file and load new links from .txt file (there is an option to match by filenames in URL, so each new URL will be matched to old URL automatically).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacing dead links.
PostPosted: September 21st, 2019, 12:55 pm 

Joined: September 18th, 2019, 9:54 pm
Posts: 17
I maybe found a way with total commander

There is an option to select files from txt or save selection to txt

format is this:

Code:
Hroch versus lev.ts
Když žraloci útočí IV (1).ts
Levhartí lovkyně (1).ts


so all left to do is to remove link address, domain, etc


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacing dead links.
PostPosted: September 21st, 2019, 1:39 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 9856
Location: Earth
You can easily remove that in text editor (notepad++ for example). Just open "Search and replace" dialog and search for http://domain/ and replace with nothing. It also supports regex searches.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacing dead links.
PostPosted: September 21st, 2019, 1:43 pm 

Joined: September 18th, 2019, 9:54 pm
Posts: 17
hmm, yes , thank you : )
but how can i replace those numbers : /12279831/
they are different in every link

Code:
http://fastshare.cz/12279831/zazracna-planeta-ii-1-ostrovy-.ts


can you do some regex kungfu : )

or that advanced search : \n \r \t \0 \x isnt regex


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacing dead links.
PostPosted: September 22nd, 2019, 5:54 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 9856
Location: Earth
There is separate option "Regular expression" which needs to be enabled in notepad++ search and replace window.

Find what:
Code:
http://fastshare\.cz/(.+?)/


Replace with:
Code:
(leave empty)

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC