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,
.
| Attachment | Size |
|---|---|
| drigg_embed.module.thumbnail.patch | 7.67 KB |

#1
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
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
Hi,
Again, please accept my most sincere apologies.
Merc.
#4
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
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
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
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
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
Hi,
I was going to apply the patch right now. However... you forgot to attach it!!! :-D
Merc.
#10
HA!
Here you go.
.
#11
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
Automatically closed -- issue fixed for two weeks with no activity.