is this project still maintained?

36 views
Skip to first unread message

euromark

unread,
Feb 8, 2011, 7:58:22 PM2/8/11
to AutoEmbed
i found out about this great project a few days ago
already implemented it and am very happy about it.

i also fixed a few bugs, enhanced the procedure of parsing and
embedding.
if desired, i can provide my changes.

but i am wondering now if the project is still maintained.
the google group seems kind of dead - and usually no responses to
threads.
the track board has lots of open tickets, some from many months ago

kind regards
mark

Corey

unread,
Feb 8, 2011, 9:03:07 PM2/8/11
to AutoEmbed
Yes, this project is still maintained although not as actively as it
was in the past. I have been busy trying to juggle a few other
projects at the moment so this has kind of been moved to the back
burner for now. I do try to quickly address any bug reports that come
in but I haven't had time to work on any new features.

I would love to see any patches you've made and will be more than
happy to add them to the code if they will benefit the project.

euromark

unread,
Feb 14, 2011, 8:24:40 PM2/14/11
to AutoEmbed
in what format can i provide patches?
right now i checked out the svn trunk

Corey

unread,
Feb 15, 2011, 8:32:09 AM2/15/11
to AutoEmbed
an svn diff will do.

svn diff > patch.diff

-Corey

euromark

unread,
Feb 15, 2011, 1:01:49 PM2/15/11
to AutoEmbed
i will try to provide that

although its not that simple
i enhanced the script and added "id" and "name" in order to extract
the id only as well as the video title if available

e.g.

array(
'title' => 'BNQT',
'website' => 'http://www.bnqt.com',
'url-match' => 'http://(?:www\.)?bnqt\.com/videos/detail/([0-9A-Za-
z-]+)/([0-9]{12})',
'embed-src' => 'http://www.bnqt.com/bnqtPlayer/vid_$3',
'embed-width' => '480',
'embed-height' => '294',
'id' => '$3',
'name' => '$2', # would like to use "title", but already in use...
),

with
getId()
getName()
getSlug()
in order to only store slug + id (without the complete src url - it
might change, and duplicates are also harder to find)
thats how i do it, anyway.

i also highly recommend to use tabs instead of spaces as indentation
its a real mess otherwise and not very good to work with as a
programmer!

cheers
mark

Corey

unread,
Feb 15, 2011, 2:50:23 PM2/15/11
to AutoEmbed
If you svn diff from the root of the directory you did a svn checkout
from it'll include all changes you've made in all files.. so the stubs
would also be included in the patch.

That being said, I don't think the approach you're taking is the
correct way to go.

I assume the getName() function is so you can have the title of the
video you're embedding. To do this properly you would need to fetch
and parse the HTML of each URL you were trying to embed. The problem
with just using the URL itself is a) this will only work for a very
small subset of the sites AE supports b) the ones it does support will
likely truncate longer titles to prevent super long URLS b) sites will
handle spaces differently (e.g. OMG_THIS_CAT_IS_HILARIOUS or OMG%20THIS
%20CAT%20IS%20HILARIOUS).

The getID() function could be useful if you were storing URLs to embed
in a database and wanted to cut down on duplicates (and not have to
check different domains for the same service (e.g. http://youtu.be/
and http://www.youtube.com/) but there has been no demand for
something like this that has been brought to my attention).

I am not really sure what the getSlug function is so I don't know if
it would be useful or not.

I'd still be happy to look at any patches you provide.

Thanks
-Corey

P.S. I also highly recommend to use spaces instead of tabs as
indentation its a real mess otherwise and not very good to work with
as a programmer! ;)

Bryan Copeland

unread,
Feb 15, 2011, 8:10:18 PM2/15/11
to auto...@googlegroups.com
What percentage of the sites AE supports would have the video title in
the HTTP header somewhere... Or in the worst case in the actual
<title> tag?

Maybe not many on the former, but ny guess is many for the later (for
SEO, WAIG accesibility, good design among other purposes) .

Having the name (video title) would be very useful to me as well. I've
added a trial of parsing out title and it's worked ok for the
providers I've tried so far (sometimes a filter is needed but no
reason that couldn't be a regular expression like the embed extraction
itself).
just my 2 cents, which may have retail value < $0.02

Cheers,

Bryan

> --
> You received this message because you are subscribed to the Google
> Groups "AutoEmbed" group.
> To post to this group, send email to auto...@googlegroups.com.
> To unsubscribe from this group, send email to autoembed+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/autoembed?hl=en
> .
>

Corey

unread,
Feb 16, 2011, 9:42:01 AM2/16/11
to AutoEmbed
Yes, this would be the correct way to approach it. To reliably get
the title you'd need to fetch the markup of the site parse it via a
regular expression (just like the code currently does to fetch some of
the needed embed code).

There would need to be a fetch-title added to the stubs that if set
will fetch the HTML and attempt to parse out the title.



On Feb 15, 8:10 pm, Bryan Copeland <bcop...@gmail.com> wrote:
> What percentage of the sites AE supports would have the video title in  
> the HTTP header somewhere... Or in the worst case in the actual  
> <title> tag?
>
> Maybe not many on the former, but ny guess is many for the later (for  
> SEO, WAIG accesibility, good design among other purposes) .
>
> Having the name (video title) would be very useful to me as well. I've  
> added a trial of parsing out title and it's worked ok for the  
> providers I've tried so far (sometimes a filter is needed but no  
> reason that couldn't be a regular expression like the embed extraction  
> itself).
>   just my 2 cents, which may have retail value < $0.02
>
> Cheers,
>
> Bryan
>
> On Feb 15, 2011, at 3:50 PM, Corey <phpu...@gmail.com> wrote:
>
>
>
>
>
>
>
> > If you svn diff from the root of the directory you did a svn checkout
> > from it'll include all changes you've made in all files.. so the stubs
> > would also be included in the patch.
>
> > That being said, I don't think the approach you're taking is the
> > correct way to go.
>
> > I assume the getName() function is so you can have the title of the
> > video you're embedding.  To do this properly you would need to fetch
> > and parse the HTML of each URL you were trying to embed.  The problem
> > with just using the URL itself is a) this will only work for a very
> > small subset of the sites AE supports b) the ones it does support will
> > likely truncate longer titles to prevent super long URLS b) sites will
> > handle spaces differently (e.g. OMG_THIS_CAT_IS_HILARIOUS or OMG
> > %20THIS
> > %20CAT%20IS%20HILARIOUS).
>
> > The getID() function could be useful if you were storing URLs to embed
> > in a database and wanted to cut down on duplicates (and not have to
> > check different domains for the same service (e.g.http://youtu.be/
> > andhttp://www.youtube.com/) but there has been no demand for

euromark

unread,
Apr 2, 2011, 11:58:02 AM4/2/11
to AutoEmbed
I only fetch the title if possible
meaning - if there isnt any title to be fetched (not possible etc) it
will just return an empty string

but it is nice to autocomplete the "title" input if is is possible
thats why i included it

I also want to include some tests right now
working on it :)
for every síngle provider there is supposed to be a test case showing
right away if the markup is still valid
this way we can easily keep track of this huge list of providers

euromark

unread,
Apr 2, 2011, 6:31:06 PM4/2/11
to AutoEmbed
currently it looks like this:

YouTube = OK (Tests: 35)
Dailymotion = OK (Tests: 24)
Google Video = OK (Tests: 1)
MegaVideo = OK (Tests: 1)
MetaCafe = OK (Tests: 1)
Revver = PARSING ERROR OR WEBSITE DOWN!
Vimeo = OK (Tests: 1)
123video = OK (Tests: 1)
5min Life Videopedia = ERROR (Tests: 2)
AdultSwim = ERROR (Tests: 1)
AniBoom = OK (Tests: 1)
AOL Video (Old) = OK (Tests: 1)
Archive.org = PARSING ERROR OR WEBSITE DOWN!
Atom = OK (Tests: 1)
Island Tickle Video = OK (Tests: 1)
Blastro = OK (Tests: 1)
BNQT = OK (Tests: 1)
BoFunk = OK (Tests: 1)
Break = OK (Tests: 1)
Brightcove.com = PARSING ERROR OR WEBSITE DOWN!
CBS News = OK (Tests: 1)
Cellfish = PARSING ERROR OR WEBSITE DOWN!
Clarin = PARSING ERROR OR WEBSITE DOWN!
Clip.vn = PARSING ERROR OR WEBSITE DOWN!
ClipFish (New) = OK (Tests: 1)
ClipJunkie = OK (Tests: 1)
ClipMoon = OK (Tests: 1)
ClipShack = OK (Tests: 1)
CNetTV = OK (Tests: 1)
CollegeHumor = PARSING ERROR OR WEBSITE DOWN!
TheDailyShow = PARSING ERROR OR WEBSITE DOWN!
ColbertNation = OK (Tests: 1)
Current = OK (Tests: 1)
Dailyhaha = OK (Tests: 1)
Dave.tv = PARSING ERROR OR WEBSITE DOWN!
DotSub (w/o Captions) = OK (Tests: 1)
DoubleViking = OK (Tests: 1)
dropshots.com = PARSING ERROR OR WEBSITE DOWN!
Dv.ouou = PARSING ERROR OR WEBSITE DOWN!
Divshare = PARSING ERROR OR WEBSITE DOWN!
EASportsWorld = PARSING ERROR OR WEBSITE DOWN!
EbaumsWorld = PARSING ERROR OR WEBSITE DOWN!
ESPN = OK (Tests: 1)
Fandome = PARSING ERROR OR WEBSITE DOWN!
Flickr = PARSING ERROR OR WEBSITE DOWN!
Foxhead = OK (Tests: 1)
FunnyOrDie = OK (Tests: 1)
FunMansion = OK (Tests: 1)
G4TV = PARSING ERROR OR WEBSITE DOWN!
GameKyo = OK (Tests: 1)
GameSpot = OK (Tests: 1)
GameTrailers (Inc. User Movies) = PARSING ERROR OR WEBSITE DOWN!
Gametube.org = PARSING ERROR OR WEBSITE DOWN!
GameVideos.1up = PARSING ERROR OR WEBSITE DOWN!
GarageTv = PARSING ERROR OR WEBSITE DOWN!
Gloria = PARSING ERROR OR WEBSITE DOWN!
GoEar = PARSING ERROR OR WEBSITE DOWN!
Good.IS = PARSING ERROR OR WEBSITE DOWN!
Glumbert = OK (Tests: 1)
GodTube = PARSING ERROR OR WEBSITE DOWN!
GrindTv = PARSING ERROR OR WEBSITE DOWN!
Guzer = PARSING ERROR OR WEBSITE DOWN!
TheHub = PARSING ERROR OR WEBSITE DOWN!
Howcast = OK (Tests: 1)
Hulu (Usa Only) = OK (Tests: 1)
Humour = PARSING ERROR OR WEBSITE DOWN!
Video.mail.ru = OK (Tests: 1)
IGN = PARSING ERROR OR WEBSITE DOWN!
iJigg = PARSING ERROR OR WEBSITE DOWN!
IMDB = PARSING ERROR OR WEBSITE DOWN!
ImageShack = PARSING ERROR OR WEBSITE DOWN!
IndyaRocks = PARSING ERROR OR WEBSITE DOWN!
iReport = PARSING ERROR OR WEBSITE DOWN!
Izlesene = OK (Tests: 1)
Jamendo = PARSING ERROR OR WEBSITE DOWN!
Jokeroo = PARSING ERROR OR WEBSITE DOWN!
JujuNation Audio = PARSING ERROR OR WEBSITE DOWN!
JustinTV = OK (Tests: 1)
Kewego = PARSING ERROR OR WEBSITE DOWN!
Koreus = OK (Tests: 1)
Last.fm (Video) = PARSING ERROR OR WEBSITE DOWN!
Libero = OK (Tests: 1)
LiveLeak = OK (Tests: 1)
LiveVideo = PARSING ERROR OR WEBSITE DOWN!
MehrSchbass = OK (Tests: 1)
MSNBC = PARSING ERROR OR WEBSITE DOWN!
MadnessVideo = PARSING ERROR OR WEBSITE DOWN!
MotionBox = PARSING ERROR OR WEBSITE DOWN!
Mpora = OK (Tests: 1)
Mp3tube = PARSING ERROR OR WEBSITE DOWN!
MtvU (Usa Only) = PARSING ERROR OR WEBSITE DOWN!
MP3 Audio = PARSING ERROR OR WEBSITE DOWN!
MyNet = PARSING ERROR OR WEBSITE DOWN!
MyShows.cn/SeeHaha.com = PARSING ERROR OR WEBSITE DOWN!
MySpaceTv = PARSING ERROR OR WEBSITE DOWN!
MyVideo = OK (Tests: 8)
MyVi = PARSING ERROR OR WEBSITE DOWN!
M Thai = PARSING ERROR OR WEBSITE DOWN!
NewGrounds = PARSING ERROR OR WEBSITE DOWN!
NhacCuaTui = PARSING ERROR OR WEBSITE DOWN!
OnSmash = PARSING ERROR OR WEBSITE DOWN!
Orb = PARSING ERROR OR WEBSITE DOWN!
Photobucket = PARSING ERROR OR WEBSITE DOWN!
PikNikTube = PARSING ERROR OR WEBSITE DOWN!
Project Playlist = PARSING ERROR OR WEBSITE DOWN!
Putfile = PARSING ERROR OR WEBSITE DOWN!
Rambler = PARSING ERROR OR WEBSITE DOWN!
RawVegas = PARSING ERROR OR WEBSITE DOWN!
RuTube = OK (Tests: 1)
ScreenToaster = OK (Tests: 1)
SevenLoad = PARSING ERROR OR WEBSITE DOWN!
ShareView = PARSING ERROR OR WEBSITE DOWN!
Sharkle = PARSING ERROR OR WEBSITE DOWN!
Smotri = ERROR (Tests: 1)
Snotr = OK (Tests: 1)
SouthPark Studios = PARSING ERROR OR WEBSITE DOWN!
Space.tv.cctv.com = PARSING ERROR OR WEBSITE DOWN!
Spike = ERROR (Tests: 1)
Songza = PARSING ERROR OR WEBSITE DOWN!
Streetfire = OK (Tests: 1)
StupidVideos = PARSING ERROR OR WEBSITE DOWN!
TagTélé = OK (Tests: 1)
Ted.com = PARSING ERROR OR WEBSITE DOWN!
TheOnion = PARSING ERROR OR WEBSITE DOWN!
TinyPic = PARSING ERROR OR WEBSITE DOWN!
TodaysBigThing = PARSING ERROR OR WEBSITE DOWN!
TrailerAddict = OK (Tests: 1)
TrTube = PARSING ERROR OR WEBSITE DOWN!
Trilulilu = OK (Tests: 1)
Tu.tv = PARSING ERROR OR WEBSITE DOWN!
Tudou = PARSING ERROR OR WEBSITE DOWN!
Tumblr (Music) = PARSING ERROR OR WEBSITE DOWN!
UOL VideoLog = PARSING ERROR OR WEBSITE DOWN!
u-Tube = OK (Tests: 1)
VideoJug = OK (Tests: 1)
videos.sapo = OK (Tests: 1)
Vidiac = PARSING ERROR OR WEBSITE DOWN!
Viddler = ERROR (Tests: 1)
Videa = OK (Tests: 1)
VidiLife = PARSING ERROR OR WEBSITE DOWN!
VidMax = OK (Tests: 1)
Vidivodo = ERROR (Tests: 1)
VoiceThread = PARSING ERROR OR WEBSITE DOWN!
WeGame = OK (Tests: 1)
Webshots (Slideshows) = OK (Tests: 1)
Yahoo Video = ERROR (Tests: 1)
YahooMusicVideos = OK (Tests: 1)
YouKu = PARSING ERROR OR WEBSITE DOWN!
You.Video.Sina.com.cn = PARSING ERROR OR WEBSITE DOWN!
XVideos = OK (Tests: 1)
Local Content = OK
Reply all
Reply to author
Forward
0 new messages