Sfoglia il codice sorgente

트위터 iframe 다크모드 추가

잉여개발기 2 anni fa
parent
commit
50d450f19c
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      route/tool/func_render_namumark.py

+ 3 - 0
route/tool/func_render_namumark.py

@@ -539,6 +539,9 @@ class class_do_render_namumark:
                     video_code = 'https://www.instagram.com/p/' + video_code +'/embed/'
                 elif name_data == 'twitter':
                     video_code = 'https://twitframe.com/show?url=' + video_code
+
+                    if self.darkmode == '1':
+                        video_code += '&theme=dark'
                 elif name_data == 'kakaotv':
                     video_code = re.sub(r'^https:\/\/tv\.kakao\.com\/v\/', '', video_code)