Преглед изворни кода

트위터 iframe 다크모드 추가

잉여개발기 пре 2 година
родитељ
комит
50d450f19c
1 измењених фајлова са 3 додато и 0 уклоњено
  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)