From d9edeb13433b9a54b9ad7706ffc7d515b3e9b608 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sun, 5 Jan 2014 11:08:15 +0100 Subject: [PATCH] Limit cyanideandhappiness filename length --- dosagelib/plugins/c.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index 38eabb1c5..386ec276a 100644 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -435,10 +435,13 @@ class CyanideAndHappiness(_BasicScraper): self.stripUrl % "3360", # video self.stripUrl % "3367", # video self.stripUrl % "3382", # video + self.stripUrl % "3421", # video ) @classmethod def namer(cls, imageUrl, pageUrl): imgname = imageUrl.split('/')[-1] + # only get the first 100 chars for the image name + imgname = imgname[:100] imgnum = pageUrl.split('/')[-2] return '%s_%s' % (imgnum, imgname)