Changeset 2082


Ignore:
Timestamp:
May 31, 2012, 5:44:58 PM (7 years ago)
Author:
matthijs
Message:

uploadd: Set sensible titles on files for Youtube.

Previously, all of the title, description and keywords would be set to
"La Fonera upload", which was not very useful. Now, the title is set to
the filename and the other two fields are left blank.

References: #1072

File:
1 edited

Legend:

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

    r2081 r2082  
    9292                "<entry xmlns=\"http://www.w3.org/2005/Atom\" xmlns:media=\"http://search.yahoo.com/mrss/\" xmlns:yt=\"http://gdata.youtube.com/schemas/2007\">\r\n"..
    9393                "<media:group>\r\n"..
    94                 "<media:title type=\"plain\">La Fonera upload</media:title>\r\n"..
    95                 "<media:description type=\"plain\">La Fonera upload</media:description>\r\n"..
     94                "<media:title type=\"plain\">"..file.."</media:title>\r\n"..
     95                "<media:description type=\"plain\"></media:description>\r\n"..
    9696                "<media:category scheme=\"http://gdata.youtube.com/schemas/2007/categories.cat\">People</media:category>\r\n"..
    97                 "<media:keywords>La Fonera Upload</media:keywords>\r\n"..
     97                "<media:keywords></media:keywords>\r\n"..
    9898                (getprivacy("youtube") and "<yt:private/>\r\n" or "")..
    9999                "</media:group>\r\n"..
Note: See TracChangeset for help on using the changeset viewer.