File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
- izulu (0.6) trusty; urgency=low
1
+ izulu (0.6.1 ) trusty; urgency=low
2
2
3
3
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
4
4
Original file line number Diff line number Diff line change @@ -478,11 +478,11 @@ getFlickrImage() {
478
478
;;
479
479
esac
480
480
local flickrpage=$( wget -O - --quiet $( wget -O - " $riverurl " --quiet | grep " class=\" noborder\" target=\" _blank\" .*http://www.flickr.com/photos" | sed ' s#.*href=\"\([^\"]*\)\".*#\1#g' | uniq | shuf -n 1) )
481
- local imagesizes=$( echo -e " $flickrpage " | grep Y.photo.init | sed ' s#.*Y.photo.init(\(.*\));#\1#g ' | tr " }" " \n" )
482
- for size in " Large 2048 " " Original " " Large 1600 " " Large \" " ; do
481
+ local imagesizes=$( echo -e " $flickrpage " | grep modelExport: | tr " }" " \n" )
482
+ for size in " k " " o " " h " " l " ; do
483
483
# not all flickr images provide every size, so we try to get the best one
484
484
# It is nicer to prefer a size with a specific width, that is why Original is not first
485
- local imageurl=$( echo -e " $imagesizes " | grep " $size " | sed -e ' s#.*\(http[^"] *\).*"#\1#g' -e ' s#\\##g' )
485
+ local imageurl=$( echo -e " $imagesizes " | grep " \" $size \" " | sed -e ' s#.*\(c4.staticflickr.com. *\).*"#https:// \1#g' -e ' s#\\##g' )
486
486
if [[ -n " $imageurl " ]]; then
487
487
break
488
488
fi
@@ -493,8 +493,11 @@ getFlickrImage() {
493
493
if [[ -z " $FLICKRTMP " ]]; then
494
494
FLICKRTMP=$( mktemp)
495
495
fi
496
- wget -O " $FLICKRTMP " " $imageurl " --quiet
497
- echo " $FLICKRTMP "
496
+ if wget -O " $FLICKRTMP " " $imageurl " --quiet; then
497
+ echo " $FLICKRTMP "
498
+ else
499
+ return 1
500
+ fi
498
501
}
499
502
500
503
@@ -817,7 +820,7 @@ while [[ $# -gt 0 ]] ; do
817
820
;;
818
821
819
822
--version)
820
- echo " izulu 0.6.0 "
823
+ echo " izulu 0.6.1 "
821
824
exit 0
822
825
;;
823
826
esac
You can’t perform that action at this time.
0 commit comments