Patch to fix (most) thumbnails in teasers

d0t101101 - May 5, 2008 - 03:37
Project:Drigg
Version:5.x-1.33
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

This patch for drigg_embed corrects the thumbnail code for most online video providers. The only providers I haven't been able to fix are:

Veoh
GoogleVideo
CollegeHumor (won't fix)

I suggest support for CollegeHumor is removed from drigg_embed. They have partnered with adware/spyware authors (Zango/180 Solutions, for example), and directs traffic to their sites.

Regards,
.

AttachmentSize
drigg_embed.module.thumbnail.patch7.67 KB

#1

mercmobily - June 8, 2008 - 14:56

Hi,

Apologies for being slack with this patch.
Can you confirm that it applies fine to Drigg 1.33?
Sorry about this... I hate getting you guys to do things twice :-(

Merc.

#2

d0t101101 - June 9, 2008 - 02:40

No worries :)

I will verify that the patch applies to the latest drigg, and that its working as expected, once again. Problem is, to test this thoroughly again I have to configure another site and create a bunch of new scoops using the various online video providers...

.

#3

mercmobily - June 9, 2008 - 10:51

Hi,

Again, please accept my most sincere apologies.

Merc.

#4

d0t101101 - June 10, 2008 - 01:19

Apology accepted :)

The patch did apply to drigg_embed 1.33 cleanly. Will get back to you on this ASAP after adequate testing.

Regards,
.

#5

mercmobily - June 10, 2008 - 17:02

Hi,

OK. I am happy for you to take out support for dodgy video services if you think that's a good idea.
Also... well, I don't suppose you could also have a look at this:

http://drupal.org/node/259230

...? Only if it's not too much trouble...

I am trying to get all of the bugs fixed before I move onto feature requests, but I am finding it a little challenging :-D

Bye!

Merc.

#6

d0t101101 - June 10, 2008 - 23:43

Great, i'll update the patch to remove collegehumor then.

I'll also try to put together a regex (in drigg_embed) that removes everything after the & for youtube videos. For reference, I also suggested this a while back:
http://drupal.org/node/257715

Regards,
.

#7

d0t101101 - June 11, 2008 - 00:38

Problem with the youtube regex solved. Here is the new version:
/youtube\.com\/watch\?v=(\w[\w|-]*)/

Funny thing is I didn't even have to leave drupal.org to find a solution:
http://drupal.org/node/88192

:]

This will be included in a forthcoming patch.

.

#8

d0t101101 - June 11, 2008 - 02:51
Version:5.x-1.31» 5.x-1.33

The above regex introduced a new problem, which I diagnosed and resolved. Here is the final patch, with a few additional changes, namely:

-typo in veoh div ("veohr") corrected.
-removed support for collegehumor
-changed revver thumb size to match the rest (80x60).
-fixed youtube URL regex - caused thumbnails not to work properly if URL contained a '&' or other special characters.

Hope to see my first drigg contribution applied to HEAD, sometime soon :D

Best regards,
.

#9

mercmobily - June 11, 2008 - 07:43

Hi,

I was going to apply the patch right now. However... you forgot to attach it!!! :-D

Merc.

#10

d0t101101 - June 11, 2008 - 12:38

HA!

Here you go.
.

AttachmentSize
drigg_embed.module-final.patch 9.61 KB

#11

mercmobily - June 14, 2008 - 10:37
Status:needs review» fixed

Hi,

Applied!
(At 6:00AM in Boston, after sleeping 7 jet-lagger hours, and before organising Lunch with Richard Stallman :-D )

The patch is in DRUPA-5. Marking this as fixed - please let me know if there are any problems. It will be rolled out in the next release (which I won't do just yet, since I got [rightly] told off for making too many releases...)

Merc.

#12

Anonymous (not verified) - June 28, 2008 - 10:43
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.