themaManager
http://manager.themasoftware.com/forum/

Replacing dead links.
http://manager.themasoftware.com/forum/viewtopic.php?f=18&t=7034
Page 1 of 1

Author:  Greenhorn [ September 21st, 2019, 12:16 pm ]
Post subject:  Replacing dead links.

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

Author:  Freddy [ September 21st, 2019, 12:48 pm ]
Post subject:  Re: Replacing dead links.

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).

Author:  Greenhorn [ September 21st, 2019, 12:55 pm ]
Post subject:  Re: Replacing dead links.

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

Author:  Freddy [ September 21st, 2019, 1:39 pm ]
Post subject:  Re: Replacing dead links.

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.

Author:  Greenhorn [ September 21st, 2019, 1:43 pm ]
Post subject:  Re: Replacing dead links.

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

Author:  Freddy [ September 22nd, 2019, 5:54 am ]
Post subject:  Re: Replacing dead links.

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)

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/