Browse Source

Add languages

master
NaiJi 6 months ago
parent
commit
c6ac5efde3
  1. 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…
Cancel
Save