فهرست منبع

Bump api version, make user info errors more detailed

Cammy 7 سال پیش
والد
کامیت
4ff7fb62da
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      pyinstalive/auth.py
  2. 1 1
      pyinstalive/downloader.py
  3. 1 1
      setup.py

+ 1 - 1
pyinstalive/auth.py

@@ -93,7 +93,7 @@ def login(username, password, show_cookie_expiry, ignore_existing_cookie):
 		seperator("GREEN")
 		sys.exit(99)
 
-	log('[I] Logging in with user "' + api.authenticated_user_name + '" successful.', "GREEN")
+	log('[I] Using cached login cookie for "' + api.authenticated_user_name + '".', "GREEN")
 	if show_cookie_expiry.title() == 'True' and ignore_existing_cookie == False:
 		cookie_expiry = api.cookie_jar.expires_earliest
 		log('[I] Login cookie expiry date: {0!s}'.format(datetime.datetime.fromtimestamp(cookie_expiry).strftime('%Y-%m-%d at %I:%M:%S %p')), "GREEN")

+ 1 - 1
pyinstalive/downloader.py

@@ -170,7 +170,7 @@ def get_user_info(user_to_record):
 		user_res = instagram_api.username_info(user_to_record)
 		user_id = user_res['user']['pk']
 	except Exception as e:
-		log('[E] Could not get information for "{:s}": {:s}'.format(user_to_record, str(e)), "RED")
+		log('[E] Could not get information for "{:s}".\n[E] Error message: {:s}\n[E] Code: {:d}\n[E] Response: {:s}'.format(user_to_record, str(e), e.code, e.error_response), "RED")
 		seperator("GREEN")
 		sys.exit(1)
 	except KeyboardInterrupt:

+ 1 - 1
setup.py

@@ -4,7 +4,7 @@ __author__ = 'notcammy'
 __email__ = 'neus2benen@gmail.com'
 __version__ = '2.4.3'
 
-_api_version = '1.4.0'
+_api_version = '1.4.1'
 _api_extensions_version = '0.3.6'
 
 long_description = 'This script enables you to record Instagram livestreams as well as download any available replays. It is based on another script that has now been discontinued.'