-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from jim-easterbrook/devel
Devel
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## Photini - a simple photo metadata editor. | ||
## http://github.com/jim-easterbrook/Photini | ||
## Copyright (C) 2022-23 Jim Easterbrook [email protected] | ||
## Copyright (C) 2022-24 Jim Easterbrook [email protected] | ||
## | ||
## This program is free software: you can redistribute it and/or | ||
## modify it under the terms of the GNU General Public License as | ||
|
@@ -40,8 +40,8 @@ | |
# requests: https://docs.python-requests.org/ | ||
|
||
class IpernitySession(UploaderSession): | ||
api_url = 'http://api.ipernity.com/api/' | ||
auth_url = 'http://www.ipernity.com/apps/authorize' | ||
api_url = 'https://api.ipernity.com/api/' | ||
auth_url = 'https://www.ipernity.com/apps/authorize' | ||
|
||
def sign_request(self, method, params): | ||
params = dict(params) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## Photini - a simple photo metadata editor. | ||
## http://github.com/jim-easterbrook/Photini | ||
## Copyright (C) 2021-23 Jim Easterbrook [email protected] | ||
## Copyright (C) 2021-24 Jim Easterbrook [email protected] | ||
## | ||
## This program is free software: you can redistribute it and/or | ||
## modify it under the terms of the GNU General Public License as | ||
|
@@ -349,10 +349,10 @@ def init_template(self): | |
template = {} | ||
for image in self.app.image_list.get_selected_images(): | ||
date_taken = image.metadata.date_taken | ||
if date_taken is None: | ||
date_taken = datetime.now() | ||
else: | ||
if date_taken: | ||
date_taken = date_taken['datetime'] | ||
else: | ||
date_taken = datetime.now() | ||
year = str(date_taken.year) | ||
for key in self.widgets: | ||
value = self._get_value(image, key) | ||
|