UncleGoogle / galaxy-integration-humblebundle

Humble Bundle integration for GOG Galaxy 2.0
GNU General Public License v3.0
185 stars 19 forks source link

Provide end_time for active choice month if not unlocked #117

Open UncleGoogle opened 4 years ago

UncleGoogle commented 4 years ago

Active sub. content ends next month-first Friday at 10 PT.

This may be useful:

def find_first_friday(y, m):
    dt = datetime.date(y, m, 1)
    next_friday = (1 + (4 - dt.weekday())) % 7
    dt.replace(day=next_friday)
    return dt

or

"navbarOptions": {"activeContentEndDate|datetime": "2020-06-05T17:00:00"

from webpack marketing_data in humblebundle.com/subscription

Currently Galaxy not uses this info yet.