[books] Fix importing scrobbles from existing books
This commit is contained in:
@ -283,6 +283,26 @@ def build_scrobbles_from_book_map(
|
|||||||
)
|
)
|
||||||
):
|
):
|
||||||
timezone = "Europe/Paris"
|
timezone = "Europe/Paris"
|
||||||
|
if (
|
||||||
|
datetime(2024, 4, 28).replace(
|
||||||
|
tzinfo=pytz.timezone("US/Pacific")
|
||||||
|
)
|
||||||
|
<= timestamp
|
||||||
|
<= datetime(2024, 5, 4).replace(
|
||||||
|
tzinfo=pytz.timezone("US/Pacific")
|
||||||
|
)
|
||||||
|
):
|
||||||
|
timezone = "US/Pacific"
|
||||||
|
if (
|
||||||
|
datetime(2024, 8, 4).replace(
|
||||||
|
tzinfo=pytz.timezone("Canada/Atlantic")
|
||||||
|
)
|
||||||
|
<= timestamp
|
||||||
|
<= datetime(2024, 8, 10).replace(
|
||||||
|
tzinfo=pytz.timezone("Canada/Atlantic")
|
||||||
|
)
|
||||||
|
):
|
||||||
|
timezone = "Canada/Atlantic"
|
||||||
|
|
||||||
stop_timestamp = datetime.fromtimestamp(
|
stop_timestamp = datetime.fromtimestamp(
|
||||||
int(last_page.get("end_ts"))
|
int(last_page.get("end_ts"))
|
||||||
|
|||||||
Reference in New Issue
Block a user