<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi, Utkarsh<br>
    <br>
    First, I would test the server. Put a simple index.html file in the
    server/ directory:<br>
    <br>
    <!DOCTYPE html><br>
    <html><br>
    <head><br>
    <title>test</title><br>
    </head><br>
    <body><br>
    <h1>TEST</h1><br>
    </body><br>
    </html><br>
    <br>
    See that this displays in your browser at <br>
    <br>
    <a class="moz-txt-link-freetext" href="http://127.0.0.1:8000/server/index.html">http://127.0.0.1:8000/server/index.html</a><br>
    <br>
    This will ensure the directory permissions are ok that the html
    server is working.<br>
    <br>
    If that is ok, then the error message. Usually, I grep for something
    like 'error downloading' to see where the error message originates.<br>
    <br>
    I assume that the get-books.cfg shows the collection in the combobox
    on the toolbar and that clicking on that shows the categories you
    have defined. <br>
    <br>
    By the way: I assume htmlf is a typo. Also you are probably running
    SimpleHTTPServer in a command line window. This window should show
    any error messages. Since the base code is python, you can also add
    print statements which will appear in the window (stdout).<br>
    <br>
    Tony<br>
    <br>
    <div class="moz-cite-prefix">On 07/19/2016 11:50 AM, Ütkarsh Tiwari
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAFRUKod9=_pA8Sjy8HmVTQp3tR6SZRiFEmLd7ymp+m8Y-en5BQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi,<br>
            </div>
               I created a folder in my home directory by the name <b>'server'</b>
            , put all the extracted book collections inside it and start
            a localhost server with <b>'python -m SimpleHTTPServer'</b>
            . <br>
            I then added that bookcollection url ( in my case it was - <b><a
                moz-do-not-send="true"
                href="http://127.0.0.1:8000/server/en-ck12/index.htmlf"><a class="moz-txt-link-freetext" href="http://127.0.0.1:8000/server/en-ck12/index.htmlf">http://127.0.0.1:8000/server/en-ck12/index.htmlf</a></a></b>)
            to one of the already available book genres in <b>get-books.cfg</b>
            . <br>
            <br>
            On clicking that genre I get this error message - '<b>There
              was an error downloading the list</b>.'<br>
            <br>
          </div>
          Regards,<br>
        </div>
        Utkarsh Tiwari<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jul 19, 2016 at 2:50 PM, Tony
          Anderson <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:tony_anderson@usa.net" target="_blank">tony_anderson@usa.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi, Utkarsh<br>
              <br>
              I am not sure what question you are asking.<br>
              <br>
              Looking at the code: the repositories seem to be defined
              in get-books.cfg.<br>
              <br>
              The actual mechanics of accessing the network appears to
              be handled by 'feedparse', which is a python module
              described at <br>
              <a moz-do-not-send="true"
                href="https://pythonhosted.org/feedparser/introduction.html"
                target="_blank">https://pythonhosted.org/feedparser/introduction.html</a>.<br>
              <br>
              What are you trying to do and what is your problem with
              it? Did you add a repository to get-books.cfg? DId it show
              up as you expected in the <br>
              toolbar widget? What happens if you select it? Does it
              show the catalogs you entered? What happens if you select
              a catalog? Does it show a list of books?<br>
              What happens when you click on a book - does it get
              downloaded to the Journal?<br>
              <br>
              My suggestion is to add Rachel as an online repository
              getting the books from its site as a first step. Once that
              is working, changing the urls to local should be easier to
              test since you would already know what to expect. <a
                moz-do-not-send="true"
href="http://rachelfriends.org/previews/rachelplus/modules/en-ebooks/index.html"
                target="_blank"><a class="moz-txt-link-freetext" href="http://rachelfriends.org/previews/rachelplus/modules/en-ebooks/index.html">http://rachelfriends.org/previews/rachelplus/modules/en-ebooks/index.html</a></a>
              is the site for Gutenberg. Each of the links on that page
              could be a catalog. Then clicking on one to show the list
              of books in the right panel. <br>
              <br>
              Tony
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 07/19/2016 08:23 AM, Ütkarsh Tiwari wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi,
                      <div>    I am working on this feature of adding
                        offline support to GetBooks activity to allow
                        users to connect to schoolservers for offline
                        books(stored on these servers) support. I am not
                        able to figure out what modifications I need to
                        make in the parsing technique of the activity in
                        order to fetch(probably via localhost server)
                        the books from Gutenberg, Rachel collections
                        which I have already downloaded onto my
                        harddisk.</div>
                      <div><br>
                      </div>
                      <div>Could anyone here please point me in the
                        right direction?<br clear="all">
                        <div><br>
                        </div>
                        -- <br>
                        <div data-smartmail="gmail_signature">Regards,<br>
                          Ütkarsh Tiwari<br>
                          <br>
                          <br>
                          <br>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Sugar-devel mailing list
<a moz-do-not-send="true" href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a>
<a moz-do-not-send="true" href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Sugar-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sugarlabs.org/listinfo/sugar-devel"
              rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>
          Ütkarsh Tiwari<br>
          <br>
          <br>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Sugar-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>