Changeset 2369


Ignore:
Timestamp:
May 5, 2014, 10:25:48 AM (4 years ago)
Author:
matthijs
Message:

uploadd: Remove 2GB limit for Youtube uploads

Originally, the Youtube gdata API seems to have had a 2GB filesize
limit. However, that limit was since removed and no new limit is
documented. The upload daemon now also does not impose any limit and
will try to upload files of any size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/libs/uploadd/luasrc/fon/gdata.lua

    r2082 r2369  
    255255                        return
    256256                end
    257                 if (stat.size > 2 * 1024 * 1024 * 1024) and s.type == "video" then
    258                         uci:set("uploadd", s[".name"], "status", TOOBIG)
    259                         uci:save("uploadd")
    260                         os.execute("mkdir -p "..s.path.."/done/")
    261                         os.execute("touch \""..s.path.."/done/"..s.file..".done_youtube\"")
    262                         return
    263                 end
    264257                count = count + 1
    265258                if s.file then
Note: See TracChangeset for help on using the changeset viewer.