mirror of https://gitlab.com/bashrc2/epicyon
Capitalize hashtag
parent
aea6b36cea
commit
877ae73fed
|
@ -1162,7 +1162,7 @@ def add_html_tags(base_dir: str, http_prefix: str,
|
||||||
max_word_length = 40
|
max_word_length = 40
|
||||||
content = content.replace('\r', '')
|
content = content.replace('\r', '')
|
||||||
content = content.replace('\n', ' --linebreak-- ')
|
content = content.replace('\n', ' --linebreak-- ')
|
||||||
content = _add_music_tag(content, 'nowplaying')
|
content = _add_music_tag(content, 'NowPlaying')
|
||||||
words = _get_simplified_content(content).split(' ')
|
words = _get_simplified_content(content).split(' ')
|
||||||
|
|
||||||
# remove . for words which are not mentions
|
# remove . for words which are not mentions
|
||||||
|
|
|
@ -15334,8 +15334,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.path = self.path.replace('?nodropdown', '')
|
self.path = self.path.replace('?nodropdown', '')
|
||||||
|
|
||||||
# redirect music to #nowplaying list
|
# redirect music to #nowplaying list
|
||||||
if self.path == '/music' or self.path == '/nowplaying':
|
if self.path == '/music' or self.path == '/NowPlaying':
|
||||||
self.path = '/tags/nowplaying'
|
self.path = '/tags/NowPlaying'
|
||||||
|
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
print('DEBUG: GET from ' + self.server.base_dir +
|
print('DEBUG: GET from ' + self.server.base_dir +
|
||||||
|
|
Loading…
Reference in New Issue