Add languages
This commit is contained in:
parent
def72534fb
commit
c6ac5efde3
5
post.py
5
post.py
|
@ -65,6 +65,9 @@ def main():
|
|||
description = vn_details['description'] if vn_details['description'] else ''
|
||||
released = vn_basic['released'] if vn_basic['released'] else 'unknown'
|
||||
link = 'https://vndb.org/v' + str(id)
|
||||
languages = ''
|
||||
for language in vn_basic['languages']:
|
||||
languages += language + ' '
|
||||
|
||||
# logging in and posting
|
||||
mastodon = Mastodon(
|
||||
|
@ -73,7 +76,7 @@ def main():
|
|||
feature_set = 'pleroma'
|
||||
)
|
||||
|
||||
text = title + '\n- - - - - - - -\n\n' + description + '\n\nReleased: ' + released + '\nPopularity: ' + (str(popularity) if popularity > -1 else 'unknown') + '\nRating:' + str(rating) + '\n\n' + link
|
||||
text = title + '\n- - - - - - - -\n\n' + description + '\n\nReleased: ' + released + '\nPopularity: ' + (str(popularity) if popularity > -1 else 'unknown') + '\nRating:' + str(rating) + '\nLanguages: ' + languages + '\n\n' + link
|
||||
|
||||
# getting screenshots of the VN
|
||||
vndb_result = vndb.get('vn', 'screens', '(id=' + str(id) + ')', '')
|
||||
|
|
Loading…
Reference in New Issue