Update inkycal_rss.py
This commit is contained in:
parent
6b7366924a
commit
a8d5b15ecd
@ -36,6 +36,7 @@ line_positions = [(border_left, bottom_section_offset +
|
|||||||
def main():
|
def main():
|
||||||
if bottom_section == "RSS" and rss_feeds != [] and internet_available() == True:
|
if bottom_section == "RSS" and rss_feeds != [] and internet_available() == True:
|
||||||
try:
|
try:
|
||||||
|
clear_image('bottom_section')
|
||||||
print('RSS module: Connectivity check passed. Generating image...',
|
print('RSS module: Connectivity check passed. Generating image...',
|
||||||
end = '')
|
end = '')
|
||||||
|
|
||||||
@ -69,8 +70,7 @@ def main():
|
|||||||
|
|
||||||
del filtered_feeds, parsed_feeds
|
del filtered_feeds, parsed_feeds
|
||||||
|
|
||||||
rss_image = image.crop((0,bottom_section_offset, display_width,
|
rss_image = crop_image(image, 'bottom_section')
|
||||||
display_height))
|
|
||||||
rss_image.save(image_path+'rss.png')
|
rss_image.save(image_path+'rss.png')
|
||||||
print('Done')
|
print('Done')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user