Skip to content

Commit

Permalink
Merge pull request #241 from jim-easterbrook/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
jim-easterbrook committed Jun 5, 2024
2 parents fc134c9 + 18b06fd commit 6cfa77a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/photini/ipernity.py
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
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions src/photini/ownership.py
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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6cfa77a

Please sign in to comment.