Releases: rahaaatul/TokySnatcher
Releases · rahaaatul/TokySnatcher
Release v0.3.1
Chores
- Updated dependencies and version:
- Updated README:
Release v0.3
In this release, we focused on enhancing search functionality, improving script structure and error handling, and updating dependencies.
Highlights
Search
- Pagination for navigating through search results.
- Caching of previously visited pages to avoid re-fetching.
- Improved user experience with added options and better error handling.
Features
- Appended a book emoji (📖) before each title in the search results.
- Added the ability to navigate to the next page and previous page.
- Added "➡️ Next page" and "⬅️ Previous page" options to the
titles
andurls
lists. - Added "🔍 Search again" and "❌ Exit" options to the
titles
andurls
lists. - Implemented caching of previously visited pages to avoid re-fetching them.
Refactors
- Improved main script structure and error handling:
- Renamed
cls
function toclear_terminal
for better readability (unused). - Moved
choices
inside themain
function to limit its scope. - Added
sys
import for handling script exit. - Improved error handling by checking if
selected_action
isNone
and exiting gracefully. - Wrapped
main
function call in atry
block to handleKeyboardInterrupt
and exit gracefully. - Renamed variables for clarity:
options
toactions
andres
toresult
.
- Renamed
- Improved chapter fetching and error handling:
- Renamed variable
crap
toscript
for better readability. - Added a check to ensure
string
is notNone
before proceeding. - Simplified
download_folder
assignment using a conditional expression. - Added logging for cases where no tracks are found in the provided URL.
- General cleanup and improved readability.
- Renamed variable
- Improved search module structure and error handling:
- Combined
if not_found
andif not_found.text == "Nothing Found"
into a single condition. - Added a check to ensure
results
is a list before iterating. - Handled "Search again" selection by calling
search_book()
recursively. - Handled "Exit" selection by exiting the function gracefully.
- Handled "Next page" and "Previous page" selections to navigate accordingly.
- Combined
Chores
- Updated dependencies and version:
- Bump version from
0.2
to0.3
. - Updated dependencies:
- json5 from
0.9.10
to0.9.28
- pick from
2.3.2
to2.4.0
- requests from
2.27.1
to2.32.3
- tqdm from
4.64.0
to4.67.0
- urllib3 from
1.26.8
to2.2.3
- json5 from
- Maintained other dependencies at current versions.
- Bump version from
❤️ Big thanks to Copilot
v0.2
What's Changed
- Notable Changes + Introduction of Command line arguments and also... by @rahaaatul in #3
New Contributors
- @rahaaatul made their first contribution in #3
Full Changelog: v1.0...v1.1
v0.1
What's Changed
- Replace '/' in chapter name with something else by @drdeaton in #1
- Convert to a cli script. by @rozari0 in #2
New Contributors
Full Changelog: https://github.com/rahaaatul/TokySnatcher/commits/v1.0