Forgot "file=" in some print statements
This commit is contained in:
parent
9b5d4e34fc
commit
987d95c048
@ -561,7 +561,7 @@ class Instaloader:
|
|||||||
media = self.get_node_metadata(node_code)
|
media = self.get_node_metadata(node_code)
|
||||||
except NodeUnavailableException:
|
except NodeUnavailableException:
|
||||||
print("Unable to lookup location for node \"https://www.instagram.com/p/{}/\".".format(node_code),
|
print("Unable to lookup location for node \"https://www.instagram.com/p/{}/\".".format(node_code),
|
||||||
sys.stderr)
|
file=sys.stderr)
|
||||||
return dict()
|
return dict()
|
||||||
if media["location"] is not None:
|
if media["location"] is not None:
|
||||||
location_json = self.get_json("explore/locations/" +
|
location_json = self.get_json("explore/locations/" +
|
||||||
@ -594,7 +594,7 @@ class Instaloader:
|
|||||||
profilename = metadata['owner']['username']
|
profilename = metadata['owner']['username']
|
||||||
except NodeUnavailableException:
|
except NodeUnavailableException:
|
||||||
print("Unable to gather profilename for node "
|
print("Unable to gather profilename for node "
|
||||||
"\"https://www.instagram.com/p/{}/\".".format(shortcode), sys.stderr)
|
"\"https://www.instagram.com/p/{}/\".".format(shortcode), file=sys.stderr)
|
||||||
profilename = 'UNKNOWN'
|
profilename = 'UNKNOWN'
|
||||||
else:
|
else:
|
||||||
profilename = None
|
profilename = None
|
||||||
@ -750,7 +750,7 @@ class Instaloader:
|
|||||||
time.sleep(item["video_duration"])
|
time.sleep(item["video_duration"])
|
||||||
except NodeUnavailableException:
|
except NodeUnavailableException:
|
||||||
print("Unable to download node \"https://www.instagram.com/p/{}/\" of user {} from stories."
|
print("Unable to download node \"https://www.instagram.com/p/{}/\" of user {} from stories."
|
||||||
.format(shortcode, name), sys.stderr)
|
.format(shortcode, name), file=sys.stderr)
|
||||||
continue
|
continue
|
||||||
if item["story_locations"]:
|
if item["story_locations"]:
|
||||||
location = item["story_locations"][0]["location"]
|
location = item["story_locations"][0]["location"]
|
||||||
@ -811,7 +811,7 @@ class Instaloader:
|
|||||||
download_comments=download_comments)
|
download_comments=download_comments)
|
||||||
except NodeUnavailableException:
|
except NodeUnavailableException:
|
||||||
print("Unable to download node \"https://www.instagram.com/p/{}/\" of user {} from feed."
|
print("Unable to download node \"https://www.instagram.com/p/{}/\" of user {} from feed."
|
||||||
.format(node['shortcode'], name), sys.stderr)
|
.format(node['shortcode'], name), file=sys.stderr)
|
||||||
continue
|
continue
|
||||||
if fast_update and not downloaded:
|
if fast_update and not downloaded:
|
||||||
return
|
return
|
||||||
@ -860,7 +860,7 @@ class Instaloader:
|
|||||||
download_comments=download_comments)
|
download_comments=download_comments)
|
||||||
except NodeUnavailableException:
|
except NodeUnavailableException:
|
||||||
print("Unable to download node \"https://www.instagram.com/p/{}/\" "
|
print("Unable to download node \"https://www.instagram.com/p/{}/\" "
|
||||||
"while downloading hashtag \"{}\".".format(node['shortcode'], hashtag), sys.stderr)
|
"while downloading hashtag \"{}\".".format(node['shortcode'], hashtag), file=sys.stderr)
|
||||||
continue
|
continue
|
||||||
if fast_update and not downloaded:
|
if fast_update and not downloaded:
|
||||||
return
|
return
|
||||||
@ -936,7 +936,7 @@ class Instaloader:
|
|||||||
try:
|
try:
|
||||||
self.download_profilepic(name, data["entry_data"]["ProfilePage"][0]["user"]["profile_pic_url"])
|
self.download_profilepic(name, data["entry_data"]["ProfilePage"][0]["user"]["profile_pic_url"])
|
||||||
except NodeUnavailableException:
|
except NodeUnavailableException:
|
||||||
print("Unable to download profilepic of user {}.".format(name), sys.stderr)
|
print("Unable to download profilepic of user {}.".format(name), file=sys.stderr)
|
||||||
if profile_pic_only:
|
if profile_pic_only:
|
||||||
return
|
return
|
||||||
# Catch some errors
|
# Catch some errors
|
||||||
@ -977,7 +977,7 @@ class Instaloader:
|
|||||||
download_comments=download_comments)
|
download_comments=download_comments)
|
||||||
except NodeUnavailableException:
|
except NodeUnavailableException:
|
||||||
print("Unable to download node \"https://www.instagram.com/p/{}/\" of user {}."
|
print("Unable to download node \"https://www.instagram.com/p/{}/\" of user {}."
|
||||||
.format(node['shortcode'], name), sys.stderr)
|
.format(node['shortcode'], name), file=sys.stderr)
|
||||||
continue
|
continue
|
||||||
if fast_update and not downloaded:
|
if fast_update and not downloaded:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user