Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repair Date Since #616

Closed
wants to merge 1 commit into from
Closed

Repair Date Since #616

wants to merge 1 commit into from

Conversation

sissiwup
Copy link

Check if file has correct date

Description:

Related issue (if applicable): fixes #604

Checklist:

  • Local tests with tox run successfully PR cannot be meged unless tests pass
  • Changes tested locally to ensure platform still works as intended
  • Tests added to verify new code works

Check if file has correct date
@@ -338,9 +338,10 @@ def download_videos(
_LOGGER.info("No videos found on page %s. Exiting.", page)
break

self._parse_downloaded_items(result, camera, path, delay, debug)
self._parse_downloaded_items(
result, camera, path, delay, debug, formatted_date)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where in the download_videos method is formatted_date set?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont see the problem. It works fine.

continue

if created_at < formatted_date:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type is formated_date? Is it the same as created_at? How do you ensure that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it will work implicite. It works as string also.

@stale
Copy link

stale bot commented Oct 14, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within seven days. Thank you for your contributions.

@stale stale bot added the stale label Oct 14, 2022
@stale
Copy link

stale bot commented Oct 22, 2022

This issue is now being closed due to inactivity.

@stale stale bot closed this Oct 22, 2022
@sissiwup
Copy link
Author

It fixes the download issue. Only an idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

download_videos using "since" downloads videos before the since time
2 participants