Added CB7 to supported upload formats

This commit is contained in:
Ozzie Isaacs 2023-08-24 10:51:16 +02:00
parent a1899bf582
commit b3a85ffcbb
2 changed files with 27 additions and 64 deletions

View File

@ -147,7 +147,7 @@ EXTENSIONS_CONVERT_FROM = ['pdf', 'epub', 'mobi', 'azw3', 'docx', 'rtf', 'fb2',
'txt', 'htmlz', 'rtf', 'odt', 'cbz', 'cbr']
EXTENSIONS_CONVERT_TO = ['pdf', 'epub', 'mobi', 'azw3', 'docx', 'rtf', 'fb2',
'lit', 'lrf', 'txt', 'htmlz', 'rtf', 'odt']
EXTENSIONS_UPLOAD = {'txt', 'pdf', 'epub', 'kepub', 'mobi', 'azw', 'azw3', 'cbr', 'cbz', 'cbt', 'djvu', 'djv',
EXTENSIONS_UPLOAD = {'txt', 'pdf', 'epub', 'kepub', 'mobi', 'azw', 'azw3', 'cbr', 'cbz', 'cbt', 'cb7', 'djvu', 'djv',
'prc', 'doc', 'docx', 'fb2', 'html', 'rtf', 'lit', 'odt', 'mp3', 'mp4', 'ogg',
'opus', 'wav', 'flac', 'm4a', 'm4b'}

View File

@ -37,20 +37,20 @@
<div class="row">
<div class="col-xs-6 col-md-6 col-sm-offset-3" style="margin-top:50px;">
<p class='text-justify attribute'><strong>Start Time: </strong>2023-08-17 20:59:16</p>
<p class='text-justify attribute'><strong>Start Time: </strong>2023-08-23 21:16:31</p>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-md-6 col-sm-offset-3">
<p class='text-justify attribute'><strong>Stop Time: </strong>2023-08-18 03:31:30</p>
<p class='text-justify attribute'><strong>Stop Time: </strong>2023-08-24 03:51:45</p>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-md-6 col-sm-offset-3">
<p class='text-justify attribute'><strong>Duration: </strong>5h 32 min</p>
<p class='text-justify attribute'><strong>Duration: </strong>5h 34 min</p>
</div>
</div>
</div>
@ -2023,9 +2023,15 @@ NameError: name &#39;details&#39; is not defined</pre>
</div>
<div class="text-left pull-left">
<pre class="text-left">Traceback (most recent call last):
File &#34;/home/ozzie/Development/calibre-web-test/test/test_edit_books_metadata.py&#34;, line 167, in test_load_metadata
self.assertGreaterEqual(diff(BytesIO(cover), BytesIO(original_cover), delete_diff_file=True), 0.05)
AssertionError: 0.0 not greater than or equal to 0.05</pre>
File &#34;/home/ozzie/Development/calibre-web-test/test/test_edit_books_metadata.py&#34;, line 209, in test_load_metadata
self.assertEqual(old_results, results)
AssertionError: Lists differ: [] != [{&#39;cover_element&#39;: &lt;selenium.webdriver.rem[10121 chars]4/&#39;}]
Second list contains 20 additional elements.
First extra element 0:
{&#39;cover_element&#39;: &lt;selenium.webdriver.remote.webelement.WebElement (session=&#34;34034d2d-f804-47c1-b9ad-fcf09f75f812&#34;, element=&#34;6dfe81e2-4752-4f1f-bd33-9388d0d529c1&#34;)&gt;, &#39;cover&#39;: &#39;https://books.google.com/books/content?id=Ub8TAQAAIAAJ&amp;printsec=frontcover&amp;img=1&amp;zoom=1&amp;source=gbs_api&amp;fife=w800-h900&#39;, &#39;source&#39;: &#39;https://books.google.com/&#39;, &#39;author&#39;: &#39;Martin Vogt&#39;, &#39;publisher&#39;: &#39;&#39;, &#39;title&#39;: &#39;Der Buchtitel in der römischen Poesie&#39;, &#39;title_link&#39;: &#39;https://books.google.com/books?id=Ub8TAQAAIAAJ&#39;}
Diff is 10795 characters long. Set self.maxDiff to None to see it.</pre>
</div>
<div class="clearfix"></div>
</div>
@ -2036,12 +2042,12 @@ AssertionError: 0.0 not greater than or equal to 0.05</pre>
<tr id="su" class="errorClass">
<tr id="su" class="passClass">
<td>TestEditBooksOnGdrive</td>
<td class="text-center">18</td>
<td class="text-center">16</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">18</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center">
<a onclick="showClassDetail('c18', 18)">Detail</a>
@ -2059,34 +2065,11 @@ AssertionError: 0.0 not greater than or equal to 0.05</pre>
<tr id="ft18.2" class="none bg-danger">
<tr id='pt18.2' class='hiddenRow bg-success'>
<td>
<div class='testcase'>TestEditBooksOnGdrive - test_edit_author</div>
</td>
<td colspan='6'>
<div class="text-center">
<a class="popup_link text-center" onfocus='blur()' onclick="showTestDetail('div_ft18.2')">FAIL</a>
</div>
<!--css div popup start-->
<div id="div_ft18.2" class="popup_window test_output" style="display:block;">
<div class='close_button pull-right'>
<button type="button" class="close" aria-label="Close" onfocus="this.blur();"
onclick="document.getElementById('div_ft18.2').style.display='none'"><span
aria-hidden="true">&times;</span></button>
</div>
<div class="text-left pull-left">
<pre class="text-left">Traceback (most recent call last):
File &#34;/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py&#34;, line 317, in test_edit_author
self.assertEqual(u&#39;O0ü name&#39;, author.get_attribute(&#39;value&#39;))
AssertionError: &#39;O0ü name&#39; != &#39; O0ü name &#39;
- O0ü name
+ O0ü name
? + +</pre>
</div>
<div class="clearfix"></div>
</div>
<!--css div popup end-->
</td>
<td colspan='6' align='center'>PASS</td>
</tr>
@ -2208,31 +2191,11 @@ AssertionError: &#39;O0ü name&#39; != &#39; O0ü name &#39;
<tr id="et18.16" class="none bg-info">
<tr id='pt18.16' class='hiddenRow bg-success'>
<td>
<div class='testcase'>TestEditBooksOnGdrive - test_edit_title</div>
</td>
<td colspan='6'>
<div class="text-center">
<a class="popup_link text-center" onfocus='blur()' onclick="showTestDetail('div_et18.16')">ERROR</a>
</div>
<!--css div popup start-->
<div id="div_et18.16" class="popup_window test_output" style="display:block;">
<div class='close_button pull-right'>
<button type="button" class="close" aria-label="Close" onfocus="this.blur();"
onclick="document.getElementById('div_et18.16').style.display='none'"><span
aria-hidden="true">&times;</span></button>
</div>
<div class="text-left pull-left">
<pre class="text-left">Traceback (most recent call last):
File &#34;/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py&#34;, line 129, in test_edit_title
self.assertEqual(u&#39;O0ü 执&#39;, values[&#39;title&#39;])
KeyError: &#39;title&#39;</pre>
</div>
<div class="clearfix"></div>
</div>
<!--css div popup end-->
</td>
<td colspan='6' align='center'>PASS</td>
</tr>
@ -5275,9 +5238,9 @@ KeyError: &#39;title&#39;</pre>
<tr id='total_row' class="text-center bg-grey">
<td>Total</td>
<td>461</td>
<td>446</td>
<td>2</td>
<td>4</td>
<td>448</td>
<td>1</td>
<td>3</td>
<td>9</td>
<td>&nbsp;</td>
</tr>
@ -5324,7 +5287,7 @@ KeyError: &#39;title&#39;</pre>
<tr>
<th>APScheduler</th>
<td>3.10.3</td>
<td>3.10.4</td>
<td>Basic</td>
</tr>
@ -5342,7 +5305,7 @@ KeyError: &#39;title&#39;</pre>
<tr>
<th>Flask</th>
<td>2.3.2</td>
<td>2.3.3</td>
<td>Basic</td>
</tr>
@ -5768,7 +5731,7 @@ KeyError: &#39;title&#39;</pre>
</div>
<script>
drawCircle(446, 2, 4, 9);
drawCircle(448, 1, 3, 9);
showCase(5);
</script>