New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
I would assume you’d need to one by one. As the links are now completely different. If each link goes to a different file then you definitely have to change it one by one.
And each link probably would have a different structure
Write a script.
This is probably your only option. 1fichier is not that hard to script so first write a script that gets you a list of filenames + download ids then either write one that edits your wordpress site or hack up some javascript that does it on the fly.
wget --convert-links would have been easier, but sed is still your pal.
This is the right answer
What is sed?
It's your pal.
If you don't mind saying, which other file hosting?
sedapal.com.pe
If you have links in database, then use this plugin
If it's somewhere in theme or hardcoded in text, you may use sed with:
https://superuser.com/a/428494 - lil modified
Filefactory. And their link structure is very different. Also I dont have knowledge on writing scripts. So its a tough process for me. A one-click link changing of every posts wouldnt be a option for me..
Yes, peruvian sed pals are the best.
Links are in posts right? So as in database?
Can you share me some example of both link structures?
But why did you leave 1fichier so quickly? I mean, you could move over slowly, but before moving first consider how to treat the problem of links.
Not leaving. Just wanted to make a backup for future protection. Maybe 1fichier would be nuked in the near future idk.
Yes links are in the database. That part is easy: Search and Replace Plugin.
But how can I change each and every A filehosting link with filehosting B?
Okay, good, then your problem isn't so critical. But why so pessimistic about 1fichier? ;-)
@jetchirag made a good suggestion above, but the problem of changing the links isn't going to be trivial.
Maybe if you can share example of link structure, I can tell something.
Archive your files before backing them up, would've made this a whole lot easier.
As you can see they both add different code into file urls:
1fichier example:
https://1fichier.com/?n1k4pq3z98
Example filefactory link:
http://www.filefactory.com/file/e8ljkyt541l/n/file.mkv.html
Just read this and 1fichier section: https://torrentfreak.com/us-govt-brands-torrent-streaming-cyberlocker-sites-as-notorious-markets-180115/
Aight. Couldn't find anything useful in their APIs, seems you gotta do it the same old way.
(The filefactory link doesn't work, but this is a detail.)
The problem is that there doesn't seem to be any discernible structure in the names of these links, so it's hard to see how a renaming of the links could be automated. (But perhaps I'm missing something.)
I think that, in the long term, your best bet would be to set up your own file hosting server on which you could choose how to name the links and which would be easy to move to another server, if necessary.