mcrapet / plowshare-modules-legacy

Plowshare legacy & unmaintained modules
GNU General Public License v3.0
121 stars 77 forks source link

mediafire.sh: fix #262

Open elig0n opened 3 years ago

elig0n commented 3 years ago

Fixing failure from what seems to be obsolete parsing (file is 3 years old):

parse failed (sed): "/function[[:space:]]*_/ s/^.*"\(.\+\)";.*$/\1/p" (skip 1)
Failed inside mediafire_download(), line 333, mediafire.sh
parse_attr failed (sed): "/href/ href="
Failed inside mediafire_download(), line 336, mediafire.sh

Parsing is made a lot easier now and seems to work with /file/$FILE_ID/* URLs at least for me. I'm not sure if the other paths are still intact though. For a trial account upload I got only such URLs. I left the other checks though they may be obsolete too by now.

ZLima12 commented 2 years ago

Worked for me.