Omnibus commited on
Commit
121c044
·
verified ·
1 Parent(s): 0cdda9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def get_images():
43
  spl = feed1.text.split("href=")
44
  for line in spl:
45
  spl2 = line.split(">")[0].strip('""')
46
- if spl2.endswith(".png|.gif|.jpg"):
47
  print(spl2)
48
  html_out+=f'<div class="img_class"><a href="{get_url}{spl2}">{get_url}{spl2}</a><br><img src={get_url}{spl2}></div>'
49
  else:
 
43
  spl = feed1.text.split("href=")
44
  for line in spl:
45
  spl2 = line.split(">")[0].strip('""')
46
+ if spl2.endswith(".png") or spl2.endswith(".gif") or spl2.endswith(".jpg"):
47
  print(spl2)
48
  html_out+=f'<div class="img_class"><a href="{get_url}{spl2}">{get_url}{spl2}</a><br><img src={get_url}{spl2}></div>'
49
  else: