Fufu Fang
95b86825ed
Added minimum transfer size in TransferDataStruct
2021-09-01 03:53:19 +01:00
Fufu Fang
08c1eeba49
added initial debug statements
2021-08-31 21:30:24 +01:00
Fufu Fang
3c7e79089b
changed error handling for empty file
2021-08-31 18:54:58 +01:00
Fufu Fang
5e87ac92b0
Change error handling in cache.c, Updated Changelog.md
2021-08-31 18:49:49 +01:00
Fufu Fang
f42264d3c3
Added single file mode
...
Implemented feature request
https://github.com/fangfufu/httpdirfs/issues/86
2021-08-31 13:52:25 +01:00
Fufu Fang
af45bcfa19
replaced strlen with strnlen
2021-08-31 12:31:02 +01:00
Fufu Fang
6713362a5f
improved error handling
2021-08-31 11:59:28 +01:00
Fufu Fang
e02042cade
improved logging
2021-08-31 11:50:59 +01:00
Fufu Fang
45d8cb8136
changed indentation style
2021-08-31 11:18:39 +01:00
Fufu Fang
f791ceb308
shortened error log format, changed indentation style
2021-08-31 11:15:00 +01:00
Fufu Fang
b03954482e
changed linktable offset
2021-08-31 10:37:56 +01:00
Fufu Fang
7b6277cb3d
now check for the invalid CONFIG.mode
2021-08-31 00:23:50 +01:00
Fufu Fang
0f3cc61875
relabelled all log outputs
2021-08-30 11:24:32 +01:00
Fufu Fang
0219d7460a
only network.c needs to be cleaned up
2021-08-30 05:17:15 +01:00
Fufu Fang
2a4c61477a
clean up lprintf statements - we have link.c and network.c left.
2021-08-30 03:43:45 +01:00
Fufu Fang
7813487c50
improved error message, removed unnecessary locks
2021-08-30 02:50:03 +01:00
Fufu Fang
14c4b3b486
updated logging facility
2021-08-29 22:46:24 +01:00
Fufu Fang
f37cdefa47
Various changes
...
- Rather than using a flag to indicate operating mode, now we use
a variable.
- Change log printing level names
- Change the return for Cache_exist
2021-08-29 14:07:22 +01:00
Fufu Fang
05ebf76094
fixed LinkTable_uninitialised_fill() status output
2021-08-29 10:58:11 +01:00
Fufu Fang
6d5267089f
improved debug messages
2021-08-22 02:26:09 +01:00
MecryWork
33bbd21e9f
Fix memory overflow
...
Co-authored-by: MecryWork
2021-08-12 13:28:37 +01:00
Fufu Fang
e76b079fe6
Fix issue #59
...
Stop duplicated link from showing for Apache server configured
with IconsAreLinks option.
2021-08-08 14:25:28 +01:00
Fufu Fang
861481e6e1
Fixed issue #71
...
Now allows link which start with percentage encoding
2021-08-05 00:34:07 +01:00
Fufu Fang
55ad0cd9fc
converted sonic_id to a string, to support epoupon LMS
2019-10-28 01:09:55 +00:00
Fufu Fang
e9c8689f8d
added -insecure_tls
2019-10-28 00:50:28 +00:00
Fufu Fang
c2be88c6e4
Added flag to disable the check on server's support for HTTP range requests
2019-10-27 21:54:26 +00:00
Fufu Fang
ff1d34855c
Sonic ID3 mode is now working properly, but Sonic index mode stopped working
2019-10-27 21:21:30 +00:00
Fufu Fang
4b2ac94fe1
fixed linktable traversal
2019-10-27 11:31:25 +00:00
Fufu Fang
83f88dbe38
not sure why it crashes
2019-10-27 11:08:23 +00:00
Fufu Fang
ef53cb83f6
Attempting to add ID3 support
2019-10-25 18:52:53 +01:00
Fufu Fang
3bd7e67041
now enforce http range request check on *sonic server as well.
2019-10-25 17:06:55 +01:00
Fufu Fang
f3d5ffc3fc
now cache works on subsonic server
2019-10-24 02:15:05 +01:00
Fufu Fang
8206b4fa37
subsonic support is now added - no cache though
2019-10-24 00:57:37 +01:00
Fufu Fang
a8ef8c88b5
added code to check if the server supports range requests
2019-10-24 00:44:18 +01:00
Fufu Fang
f73643e32c
fixed a regression associated with invalid link detection
2019-10-23 22:10:33 +01:00
Fufu Fang
0f7623d1e7
succesfully mounted the filesystem, now need to actually download the music file
2019-10-23 21:36:08 +01:00
Fufu Fang
5062f511bd
Finished writing the code to generate Subsonic LinkTable
...
- Also refactored various bits and pieces
2019-10-23 21:04:25 +01:00
Fufu Fang
b7c63f4418
renamed MemoryStruct to DataStruct, removed spurious link type detection logic
2019-10-22 20:26:21 +01:00
Fufu Fang
ed8452a4a3
factored out network / root link table initialisation code
2019-10-22 01:49:53 +01:00
Fufu Fang
dec32b0bb4
removed main.c's extra warning messages when doing exit(EXIT_FAILURE)
2019-10-22 01:13:28 +01:00
Fufu Fang
65a9e7f908
half way writing sonic_LinkTable_new
...
- now need to write the parser
2019-10-22 00:42:46 +01:00
Fufu Fang
1a9c10f783
more changes to the subsonic module
...
completed sonic_gen_auth_str()
completed sonic_gen_url_first_part()
change calloc to CALLOC (the wrapper function with error handling)
2019-10-21 23:12:02 +01:00
Fufu Fang
eaabc877a0
added md5 checksum generation and salt generation
2019-10-21 02:11:54 +01:00
Fufu Fang
bc23ee03a2
Fixed regression: LinkTable caching now works again.
2019-09-04 19:53:11 +01:00
Fufu Fang
1493190692
Improved HTTP temporary failure error handling
...
- Added HTTP response code for Cloudflare timeout
- Improved HTTP temporary failure error handling during LinkTable generation
- Now checked all HTTP response code in a single function
2019-09-04 18:42:59 +01:00
Fufu Fang
ff67794b02
Now retry on HTTP 520 (Unknown error)
2019-09-04 17:57:15 +01:00
Fufu Fang
b6777c0478
Bugfix: No longer deadlock after encountering HTTP 429 while filling up a Linktable.
...
- Renamed some functions
- After initialise parse of the HTML file, files are no longer assigned as LINK_FILE. They are now assigned as LINK_UNINITIALISED_FILE.
- Link_req_file_stat() now crashes if the link type is other than LINK_UNINITIALISED_FILE.
2019-09-04 17:43:18 +01:00
Fufu Fang
cf49bf86b8
improved LinkTable_fill() status message
2019-09-03 15:12:38 +01:00
Fufu Fang
c7dfa241d4
Backtrace will now be printed when the program crashes
...
- Note that static functions are not included in the printed backtrace.
2019-09-03 14:53:32 +01:00
Fufu Fang
9ff099cd3a
added a status indicator when filling up the linktable
2019-09-03 14:02:41 +01:00