Add languages

This commit is contained in:
NaiJi ✨ 2021-05-02 01:18:03 +03:00
parent def72534fb
commit c6ac5efde3
1 changed files with 4 additions and 1 deletions

View File

@ -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) + ')', '')