Update translations for English and Icelandic languages, changed colors of some icons, added more icons.
This commit is contained in:
11
filters/tumblr.com.filter.py
Normal file
11
filters/tumblr.com.filter.py
Normal file
@ -0,0 +1,11 @@
|
||||
# Extract terms from the Tumblr URL
|
||||
parsed_url = QUrl(url)
|
||||
host_parts = parsed_url.host().split('.')
|
||||
domain = '.'.join(host_parts[-2:]) # Extracting the domain name with TLD
|
||||
path = parsed_url.path().strip('/').split('/')
|
||||
|
||||
terms.append(domain)
|
||||
if len(path) > 0:
|
||||
terms.append(path[0]) # User name
|
||||
if len(path) > 2:
|
||||
terms.append(path[2]) # Post name
|
||||
Reference in New Issue
Block a user