Explorar o código

트위터 iframe 다크모드 추가

잉여개발기 %!s(int64=2) %!d(string=hai) anos
pai
achega
50d450f19c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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)