Open ptah-alexs opened 12 years ago
после обновления вот такая картина:
Checking http://2ch.so/sci/res/71671.html - 1 new posts
Adding post #93685 (0 left)
Traceback (most recent call last):
File "./grab.py", line 336, in
Пофиксила в 69e8ab2d4e1dcfa141b4fcc9dfed5915178806c1
etw - после твоего патча locmechan не падает, но не сохраняет текст. Пример: http://rghost.ru/37460495
Вот пока что однострочник
for i in $(cat list); do
NAME=$(printf "pirach_%s_%s\n" $(echo $i | cut -d\/ -f4) $(echo $i | cut -d\/ -f6 | cut -d\. -f1))
rm -fr threads/images/$NAME threads/thumbs/$NAME threads/$NAME.html
done
Как выкачу фикс (уже написан), примени (из корня каталога с локмечаном) однострочник и перекачай треды заново.
OK, теперь все в норме, спасибо etw
Снова что-то сбоит:
Checking http://2ch.so/b/res/26949090.html - thread died.
Checking http://2ch.so/b/res/26971075.htmlTraceback (most recent call last):
File "./grab.py", line 336, in
Гм. У меня ща норм все фетчится. Ревизия из гита последняя?
Как оказалось у меня не последняя ревизия была. Сейчас все нормально
Хотя он теперь странно сохраняет. В одном из тредов он вместо текста всех постов записал текст последнего поста (пик: http://rghost.ru/37648216/image.png ), в остальных случаях сохраняет посты, но без текста.
Checking http://2ch.so/sf/res/12351.html - no updates Checking http://2ch.so/sf/res/17535.html - 1 new posts Adding post #21260 (0 left) Traceback (most recent call last): File "./grab.py", line 336, in
commands[sys.argv[1]]()
File "./grab.py", line 125, in get
output_writer.add_post(newpost)
File "/var/www/locmechan/output.py", line 40, in add_post
if not 'postnumber' in post:
TypeError: argument of type 'NoneType' is not iterable