Copy files from multiple links

i think that problem is that the file path contains a colon and windows does not like that.
on my windows laptop, using wsl2 linux, i can download the file.

Failed to copyurl: parse "'https://index.txcloud.ga/0:/Movie%20Bot/%20Memoria%20(2021)/Memoria.2021.WEB.1080p.Dream.mkv'": first path segment in URL cannot contain colon

Try this one, it seems to work

rclone copyurl "https://fkdup.sharepoint.workers.dev/0:/x265lk.com/%5BeXvoiy%5Dwwwx265lk.com.Ant-Man.and.the.Wasp.2018.720p.BluRay.x265.HEVC.mkv" TX:/ -a -P

please add -vv for debug log, run the command and post the output

2021/12/28 22:01:56 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "copyurl" "https://fkdup.sharepoint.workers.dev/0:/x265lk.com/%5BeXvoiy%5Dwwwx265lk.com.Ant-Man.and.the.Wasp.2018.720p.BluRay.x265.HEVC.mkv" "TX:/" "-a" "-P" "-vv"]
2021/12/28 22:01:56 DEBUG : Creating backend with remote "TX:/"
2021/12/28 22:01:56 DEBUG : Using config file from "C:\\Users\\Admin\\AppData\\Roaming\\rclone\\rclone.conf"
2021/12/28 22:01:56 DEBUG : fs cache: renaming cache item "TX:/" to be canonical "TX:"
2021-12-28 22:01:59 DEBUG : [eXvoiy]wwwx265lk.com.Ant-Man.and.the.Wasp.2018.720p.BluRay.x265.HEVC.mkv: File name found in url
2021-12-28 22:02:01 DEBUG : [eXvoiy]wwwx265lk.com.Ant-Man.and.the.Wasp.2018.720p.BluRay.x265.HEVC.mkv: Sending chunk 0 length 8388608
2021-12-28 22:02:02 DEBUG : [eXvoiy]wwwx265lk.com.Ant-Man.and.the.Wasp.2018.720p.BluRay.x265.HEVC.mkv: Sending chunk 8388608 length 8388608
Transferred:       14.844 MiB / 657.883 MiB, 2%, 3.336 MiB/s, ETA 3m12s
Transferred:            0 / 1, 0%
Elapsed time:         8.0s
Transferring:
 * [eXvoiy]wwwx265lk.com.…p.BluRay.x265.HEVC.mkv:  2% /657.883Mi, 3.344Mi/s, 3m12s^C

did not work for me

rclone.exe copyurl "https://fkdup.sharepoint.workers.dev/0:/x265lk.com/BeXvoiyDwwwx265lk.com.Ant-Man.and.the.Wasp.2018.720p.BluRay.x265.HEVC.mkv" D:\test -a -vv 
2021/12/28 11:34:49 DEBUG : Setting --config "C:\\data\\rclone\\scripts\\rclone.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\scripts\\rclone.conf"
2021/12/28 11:34:49 DEBUG : rclone: Version "v1.57.0" starting with parameters ["c:\\data\\rclone\\scripts\\rclone.exe" "copyurl" "https://fkdup.sharepoint.workers.dev/0:/x265lk.com/BeXvoiyDwwwx265lk.com.Ant-Man.and.the.Wasp.2018.720p.BluRay.x265.HEVC.mkv" "D:\\test" "-a" "-vv"]
2021/12/28 11:34:49 DEBUG : Creating backend with remote "D:\\test"
2021/12/28 11:34:49 DEBUG : Using config file from "C:\\data\\rclone\\scripts\\rclone.conf"
2021/12/28 11:34:49 DEBUG : fs cache: renaming cache item "D:\\test" to be canonical "//?/D:/test"
2021/12/28 11:34:49 ERROR : Attempt 1/3 failed with 1 errors and: CopyURL failed: 404 Not Found
2021/12/28 11:34:50 ERROR : Attempt 2/3 failed with 1 errors and: CopyURL failed: 404 Not Found
2021/12/28 11:34:50 ERROR : Attempt 3/3 failed with 1 errors and: CopyURL failed: 404 Not Found

you have the parsed url, which is ofc incorrect, this is the one

https://fkdup.sharepoint.workers.dev/0:/x265lk.com/%5BeXvoiy%5Dwwwx265lk.com.Ant-Man.and.the.Wasp.2018.720p.BluRay.x265.HEVC.mkv

Could this be a bug, because it worked here ig?

So basically, is there any other way to copy from a text file having urls (base url is same) to any remote (like gdrive)?

hi, i wrote that script mentioned in that link.

did a quick test, and that script worked.

rclone copyurl https://index.txcloud.ga/0%3A/Movie%20Bot/%20Memoria%20(2021)/Memoria.2021.WEB.1080p.Dream.mkv D:\test -a -vv --stats-one-line --progress
DEBUG : Setting --config "C:\\data\\rclone\\scripts\\rclone.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\scripts\\rclone.conf"
DEBUG : rclone: Version "v1.57.0" starting with parameters ["c:\\data\\rclone\\scripts\\rclone.exe" "copyurl" "https://index.txcloud.ga/0%3A/Movie%20Bot/%20Memoria%20(2021)/Memoria.2021.WEB.1080p.Dream.mkv" "D:\\test" "-a" "-vv" "--stats-one-line" "--progress"]
DEBUG : Creating backend with remote "D:\\test"
DEBUG : Using config file from "C:\\data\\rclone\\scripts\\rclone.conf"
DEBUG : fs cache: renaming cache item "D:\\test" to be canonical "//?/D:/test"
DEBUG : Memoria.2021.WEB.1080p.Dream.mkv: File name found in url
1.612 GiB / 2.168 GiB, 74%, 87.360 MiB/s, ETA 6s

single urls do work, but I want to pass them from a file because I have many of them.

yes, i understand that.

that script i wrote in https://forum.rclone.org/t/copy-files-from-multiple-links-to-my-drive/18641/5
works just fine. it will copy multiple files, which is what you want.

that debug log, was from that script.
did you try the scripts, it works well.
did you try the script, it works......

ran this on WSL

for /f %%u in (urls2.txt) do rclone copyurl %%u TX: -a

Got this error

-bash: syntax error near unexpected token `%%u'

and this is urls2.txt

https://index.txcloud.ga/2:/MR.KITTY%20-%20Discography%20(2008-2014)/Remixes/Mr.Kitty%20-%20R.M.X%20(2008)/1.%20Estrella%20(Mr.Kitty%20Remix).flac
https://index.txcloud.ga/2:/MR.KITTY%20-%20Discography%20(2008-2014)/Remixes/Mr.Kitty%20-%20R.M.X%20(2008)/2.%20All%20at%20Once%20(Mr.Kitty%20Remix).flac

that is for cmd.exe , not wsl2

D:\rclone>for /f %%u in (urls2.txt) do rclone copyurl %%u TX: -a
%%u was unexpected at this time.

run it from a .cmd batch file as that will not work direct from command line without modification.

if you want from the command line try
for /f %u in (urls2.txt) do rclone copyurl %u TX: -a

https://ss64.com/nt/syntax-args.html
"This is unlike regular variables which have both leading and trailing %'s such as %variable%, or FOR command variables which use a single leading % on the command line or a double leading %% when used in a batch file."

thanks a lot bro. but if this would have worked then it possible to do parallel transfers, right?

anything is possible, so give it a try and see what happens.

Parallel works only when we provide multiple urls like when we do --files-from afaik

yes, i undertand that, so try it and see what happens.

I have tried everything as per my understanding, nothing works, please help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.